-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (64 loc) · 1.71 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
jar.enabled = false
sourceCompatibility = JavaLanguageVersion.of(17)
targetCompatibility = JavaLanguageVersion.of(17)
group 'net.querz'
repositories {
mavenCentral()
maven {
url 'https://jitpack.io/'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
dependencies {
implementation 'com.github.Querz:NBT:404d5d83bd'
implementation 'it.unimi.dsi:fastutil:8.5.8'
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'me.tongfei:progressbar:0.9.3'
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
shadow 'com.github.Querz:NBT:404d5d83bd'
shadow 'it.unimi.dsi:fastutil:8.5.8'
shadow 'org.apache.logging.log4j:log4j-api:2.17.2'
shadow 'org.apache.logging.log4j:log4j-core:2.17.2'
shadow 'me.tongfei:progressbar:0.9.3'
shadow 'commons-cli:commons-cli:1.5.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
test {
useJUnitPlatform()
}
processResources {
filesMatching('META-INF/MANIFEST.MF') {
expand 'application_version': application_version
}
}
jar {
manifest {
attributes(
'Main-Class': 'net.querz.worldpruner.Main',
'Implementation-Version': application_version
)
}
dependsOn shadowJar
}
shadowJar {
minimize {
exclude(dependency('org.apache.logging.log4j:log4j-core:.*'))
}
configurations = [project.configurations.shadow]
classifier ''
}
task runGUI(type: JavaExec) {
group 'runs'
description 'Run the GUI'
classpath sourceSets.main.runtimeClasspath
main 'net.querz.worldpruner.Main'
}