2021-05-11 15:36:59 +00:00
|
|
|
plugins {
|
|
|
|
|
id 'java-library'
|
|
|
|
|
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
2019-08-10 22:09:32 +02:00
|
|
|
}
|
|
|
|
|
|
2021-09-08 15:17:16 +02:00
|
|
|
sourceCompatibility = '1.11'
|
2021-09-08 13:14:12 +00:00
|
|
|
targetCompatibility = '1.11'
|
|
|
|
|
|
2020-04-09 23:39:09 +08:00
|
|
|
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'
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-26 21:29:48 +08:00
|
|
|
shadowJar {
|
|
|
|
|
exclude 'OSGI-OPT/' // args4j garbage
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-10 22:09:32 +02:00
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2021-05-11 15:36:59 +00:00
|
|
|
compileOnly 'org.projectlombok:lombok:1.18.20'
|
|
|
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.20'
|
2020-04-14 23:24:28 +10:00
|
|
|
|
2021-05-11 15:36:59 +00:00
|
|
|
implementation 'args4j:args4j:2.33'
|
2021-09-08 15:17:16 +02:00
|
|
|
implementation 'net.lingala.zip4j:zip4j:2.7.0'
|
2021-05-11 15:36:59 +00:00
|
|
|
implementation 'net.java.dev.jna:jna-platform:5.0.0' // couldnt upgrade
|
|
|
|
|
implementation 'org.simpleframework:simple-xml:2.7.1'
|
|
|
|
|
implementation 'javax.xml.bind:jaxb-api:2.3.1'
|
|
|
|
|
implementation 'com.formdev:flatlaf:1.1.2'
|
2020-06-01 19:15:44 +10:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.7.2'
|
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.7.2'
|
2021-05-11 15:36:59 +00:00
|
|
|
// implementation "com.squareup.okhttp3:okhttp:4.9.0" //missing JavaNetCookieJar
|
2019-08-10 22:09:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes "Main-Class": "com.sheepit.client.standalone.Worker"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
from {
|
2021-05-11 15:36:59 +00:00
|
|
|
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
|
2019-08-10 22:09:32 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
main {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs = ['src']
|
|
|
|
|
}
|
2019-08-11 22:25:26 +02:00
|
|
|
resources {
|
|
|
|
|
srcDirs = ['resources']
|
|
|
|
|
}
|
2019-08-10 22:09:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
test {
|
|
|
|
|
java {
|
|
|
|
|
srcDirs = ['test']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|