forked from Nickid2018/AutoGenerateWikiData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
161 lines (140 loc) · 4.86 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
plugins {
id 'java'
id 'java-library'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'io.github.nickid2018'
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
api 'org.ow2.asm:asm:9.6'
api 'org.ow2.asm:asm-tree:9.6'
api 'org.ow2.asm:asm-commons:9.6'
api 'commons-io:commons-io:2.15.0'
api 'com.google.code.gson:gson:2.10.1'
api 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
api "org.apache.logging.log4j:log4j-api:2.19.0"
api "org.apache.logging.log4j:log4j-core:2.19.0"
api "org.apache.logging.log4j:log4j-slf4j-impl:2.19.0"
api 'it.unimi.dsi:fastutil:8.5.12'
api 'com.google.guava:guava:32.1.3-jre'
api 'me.tongfei:progressbar:0.10.0'
api 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testCompileOnly 'org.projectlombok:lombok:1.18.32'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
compileOnly(project(':wrapped-mc'))
compileOnly('org.lwjgl:lwjgl:3.3.3')
compileOnly('org.lwjgl:lwjgl-glfw:3.3.3')
compileOnly('org.lwjgl:lwjgl-opengl:3.3.3')
compileOnly('org.lwjgl:lwjgl-stb:3.3.3')
compileOnly('org.joml:joml:1.10.5')
}
jar {
manifest {
attributes 'Main-Class': 'io.github.nickid2018.genwiki.GenerateWikiData'
}
}
shadowJar {
archiveFileName.set("GenWiki.jar")
dependencies {
exclude(project(":wrapped-mc"))
}
manifest {
inheritFrom(project.tasks.jar.manifest)
}
}
test {
useJUnitPlatform()
}
tasks.register("run", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"])
standardInput = System.in
}.configure {
dependsOn(shadowJar)
}
tasks.register("runStatistics", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"], "--mode", "STATISTICS")
standardInput = System.in
}.configure {
dependsOn(shadowJar)
}
tasks.register("runStatisticsNotRun", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"], "--mode", "STATISTICS", "--not-run")
}.configure {
dependsOn(shadowJar)
}
tasks.register("runISO", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"], "--mode", "ISO")
}.configure {
dependsOn(shadowJar)
}
tasks.register("runISONotRun", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"], "--mode", "ISO", "--not-run")
}.configure {
dependsOn(shadowJar)
}
tasks.register("runRegistries", JavaExec) {
if (!file("run").isDirectory())
mkdir("run")
if (file("run/remapped").isDirectory())
delete(fileTree("run/remapped"))
workingDir = file("run")
if (environment["MAKE_VERSION"] == null)
environment["MAKE_VERSION"] = ""
classpath = layout.buildDirectory.files("libs/GenWiki.jar")
mainClass = "io.github.nickid2018.genwiki.GenerateWikiData"
args(environment["MAKE_VERSION"], "--mode", "REGISTRIES")
}.configure {
dependsOn(shadowJar)
}