-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
114 lines (97 loc) · 2.98 KB
/
build.gradle
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
gradle.startParameter.showStacktrace = org.gradle.api.logging.configuration.ShowStacktrace.ALWAYS
/* App metadata */
ext {
appName = "MadSand"
versionCode = '0.49.20'
author = 'Hitonoriol'
}
ext {
rootDir = file(".").absolutePath
assetsDir = file("${rootDir}/core/assets")
}
/* System properties */
ext {
javaVersion = 18
javaHome = System.getProperty('java.home')
javaBin = "${javaHome}/bin"
osName = System.getProperty('os.name').toLowerCase(Locale.ROOT).split(' ')[0]
pathSep = File.pathSeparatorChar
}
/* Dependency versions */
ext {
gdxVersion = '1.11.0'
aiVersion = '1.6.0'
jacksonVersion = '2.13.4'
textraTypistVersion = '0.8.3'
shapedrawerVersion = '2.5.0'
}
/* jlink configuration */
ext {
jlinkModuleDir = "${javaHome}/jmods"
jlinkModuleList = "java.base,java.desktop,jdk.unsupported,java.management,jdk.crypto.ec"
}
allprojects {
apply plugin: "eclipse"
version = "v${versionCode}a"
plugins.withType(JavaPlugin) {
compileJava {
options.release = project.javaVersion
}
dependencies {
implementation 'org.apache.commons:commons-lang3:3.9'
implementation 'org.apache.commons:commons-text:1.9'
implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'org.apache.commons:commons-collections4:4.4'
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
}
}
}
def commons = project(":commons")
configure(allprojects - commons) {
plugins.withType(JavaPlugin) {
dependencies {
implementation commons
}
println(project.name)
}
}
project(":desktop") {
apply plugin: "java-library"
dependencies {
implementation project(":core")
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
}
project(":core") {
apply plugin: "java-library"
dependencies {
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
api "com.badlogicgames.gdx:gdx-ai:$aiVersion"
implementation 'com.github.czyzby:noise4j:0.1.0'
implementation 'com.crashinvaders.vfx:gdx-vfx-core:0.5.1'
implementation 'com.crashinvaders.vfx:gdx-vfx-effects:0.5.1'
implementation "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation 'me.xdrop:fuzzywuzzy:1.3.1'
implementation "com.github.tommyettinger:textratypist:$textraTypistVersion"
implementation "space.earlygrey:shapedrawer:$shapedrawerVersion"
implementation files('../lib/luaj-jse-3.0.2.jar')
implementation files('../lib/jrand-0.2.7-alpha.jar')
}
}