-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.26 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
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
compileJava {
// Suppress warnings about internal api usage - https://stackoverflow.com/a/19553686/6238618
options.fork = true
options.forkOptions.executable = 'javac'
options.compilerArgs << '-XDignore.symbol.file'
}
shadowJar {
exclude 'OSGI-OPT/' // args4j garbage
}
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
implementation 'args4j:args4j:2.33'
implementation 'net.lingala.zip4j:zip4j:2.11.1'
implementation 'net.java.dev.jna:jna-platform:5.12.1'
implementation 'com.github.oshi:oshi-core:6.2.2'
implementation 'org.simpleframework:simple-xml:2.7.1'
implementation 'com.formdev:flatlaf:2.2' // 2.3+ causes illegal reflective access warning on win + adoptium java 11.0.16
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.10.0'
implementation 'org.slf4j:slf4j-nop:1.7.36'
}
jar {
manifest {
attributes "Main-Class": "com.sheepit.client.standalone.Worker"
}
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
}