-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (50 loc) · 1.28 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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'com.github.johnrengelman:shadow:8.1.1'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
group = 'org.mangorage'
version = '1.0'
repositories {
mavenCentral()
maven {
url = 'https://jitpack.io/'
}
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation 'com.github.Querz:NBT:6.1'
implementation 'fastutil:fastutil:5.0.9'
implementation 'org.apache.commons:commons-compress:+'
implementation 'org.tukaani:xz:1.8'
implementation 'com.github.Fylipp:easy-events:1.+'
implementation 'org.reflections:reflections:0.9.12'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class' : 'org.mangorage.gridgame.core.classloading.Init'
)
}
}
task runGame(type: JavaExec) {
// Set the main class to run
main = 'org.mangorage.gridgame.core.classloading.Init'
classpath = sourceSets.main.runtimeClasspath
setWorkingDir("build/run")
setGroup("runs")
doFirst {
File runDir = file("build/run")
runDir.mkdirs()
}
}
tasks.build.dependsOn(tasks.shadowJar)