forked from bobsgame/BobsGameOnline
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
121 lines (105 loc) · 3.95 KB
/
Copy pathbuild.gradle
File metadata and controls
121 lines (105 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java'
id 'application'
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
project.ext.lwjglVersion = "3.4.1"
project.ext.gdxVersion = "1.14.0"
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
}
dependencies {
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-glfw"
implementation "org.lwjgl:lwjgl-opengl"
implementation "org.lwjgl:lwjgl-openal"
implementation "org.lwjgl:lwjgl-stb"
implementation "org.lwjgl:lwjgl-jemalloc"
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-openal::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-jemalloc::$lwjglNatives"
// LibGDX
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
// Local JARs
implementation files('libs/TWL.jar')
implementation files('libs/TWLEffects.jar')
implementation files('libs/ibxm77.jar')
// Dependencies from pom.xml
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.googlecode.soundlibs:jorbis:0.0.17.4'
implementation 'org.slf4j:slf4j-api:2.0.3'
implementation 'org.slf4j:jcl-over-slf4j:2.0.3'
implementation 'org.slf4j:log4j-over-slf4j:2.0.3'
implementation 'ch.qos.logback:logback-classic:1.4.4'
implementation 'commons-net:commons-net:3.8.0'
implementation 'io.netty:netty-all:4.1.86.Final'
implementation 'com.restfb:restfb:2022.10.0'
implementation 'commons-codec:commons-codec:1.15'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-compress:1.22'
implementation 'com.ibm.icu:icu4j:72.1'
implementation 'com.mchange:c3p0:0.9.5.5'
implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'com.mysql:mysql-connector-j:8.0.31'
implementation 'org.apache.commons:commons-email:1.5'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.1.3'
implementation 'org.jasypt:jasypt:1.9.3'
implementation 'org.lz4:lz4-java:1.8.0'
implementation 'com.maxmind.geoip2:geoip2:3.0.2'
implementation 'net.java.jinput:jinput:2.0.9'
implementation 'xpp3:xpp3:1.1.4c'
implementation 'at.favre.lib:bcrypt:0.9.0'
implementation 'com.zaxxer:HikariCP:5.0.1'
implementation ('io.socket:socket.io-client:2.1.0') {
exclude group: 'org.json', module: 'json'
}
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.1'
}
test {
useJUnitPlatform()
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'libs/twl-lwjgl3/src', 'libs/aseprite-file/src/main/java']
exclude { details ->
details.file.absolutePath.replace('\\', '/').endsWith('/libs/twl-lwjgl3/src/de/matthiasmann/twl/input/lwjgl/LWJGLInput.java')
}
}
resources {
srcDirs = ['src/main/resources', 'res']
}
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
application {
mainClass = 'com.bobsgame.client.DesktopLauncher'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:deprecation"
}