-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle
More file actions
94 lines (81 loc) · 2.83 KB
/
Copy pathbuild.gradle
File metadata and controls
94 lines (81 loc) · 2.83 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
plugins {
id 'java'
id 'java-library'
id 'com.gradleup.shadow' version '9.3.0'
id 'io.github.nickid2018.generate-mock'
}
group = 'io.github.nickid2018'
version = '1.0'
repositories {
mavenCentral()
mavenLocal()
maven {
name = "minecraft"
url = "https://libraries.minecraft.net/"
}
}
dependencies {
api 'org.ow2.asm:asm:9.9.1'
api 'org.ow2.asm:asm-tree:9.9.1'
api 'org.ow2.asm:asm-commons:9.9.1'
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.25.0"
api 'org.apache.logging.log4j:log4j-core:2.25.3'
api "org.apache.logging.log4j:log4j-slf4j-impl:2.25.0"
api 'it.unimi.dsi:fastutil:8.5.12'
api 'com.google.guava:guava:32.1.3-jre'
api 'net.sf.jopt-simple:jopt-simple:6.0-alpha-3'
api 'me.tongfei:progressbar:0.10.0'
api 'io.github.nickid2018:easy-mock:1.0'
compileOnly 'org.projectlombok:lombok:1.18.42'
annotationProcessor 'org.projectlombok:lombok:1.18.42'
testCompileOnly 'org.projectlombok:lombok:1.18.42'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.42'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
compileOnly mocker.mock('./src/main/resources/remap/api.txt')
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 'com.mojang:brigadier:1.3.10'
compileOnly 'com.mojang:datafixerupper:8.0.16'
compileOnly 'org.joml:joml:1.10.5'
}
jar {
manifest {
attributes 'Main-Class': 'io.github.nickid2018.genwiki.GenerateWikiData'
}
}
shadowJar {
archiveFileName.set("GenWiki.jar")
}
void addRunTask(name, mode, dry = false) {
tasks.register(name, 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"
if (dry) {
args(environment["MAKE_VERSION"], "--mode", mode, "--not-run")
} else {
args(environment["MAKE_VERSION"], "--mode", mode)
}
standardInput = System.in
}.configure {
dependsOn(shadowJar)
}
}
addRunTask("run", "AUTOVALUE")
addRunTask("runStatistics", "STATISTICS")
addRunTask("runStatisticsNotRun", "STATISTICS", true)
addRunTask("runDataGenerator", "CLIENT_DATA")
addRunTask("runISO", "ISO")
addRunTask("runISONotRun", "ISO", true)