2019-08-10 22:09:32 +02:00
|
|
|
buildscript {
|
|
|
|
|
repositories {
|
|
|
|
|
jcenter()
|
|
|
|
|
}
|
|
|
|
|
dependencies {
|
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
|
|
sourceCompatibility = '1.7'
|
|
|
|
|
targetCompatibility = '1.7'
|
|
|
|
|
|
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'
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-10 22:09:32 +02:00
|
|
|
repositories {
|
|
|
|
|
jcenter()
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
compile 'org.projectlombok:lombok:1.18.8'
|
|
|
|
|
compile 'org.kohsuke.args4j:args4j-maven-plugin:2.0.31'
|
|
|
|
|
compile 'net.lingala.zip4j:zip4j:1.3.2'
|
|
|
|
|
compile 'net.java.dev.jna:jna-platform:4.0.0'
|
|
|
|
|
compile 'net.java.dev.jna:jna:4.0.0'
|
|
|
|
|
compile 'javax.xml.bind:jaxb-api:2.3.1'
|
2019-09-03 20:15:46 +02:00
|
|
|
compile 'com.squareup.retrofit2:converter-simplexml:2.3.0'
|
2020-04-14 23:24:28 +10:00
|
|
|
|
|
|
|
|
implementation 'com.formdev:flatlaf:0.30'
|
2019-08-10 22:09:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jar {
|
|
|
|
|
manifest {
|
|
|
|
|
attributes "Main-Class": "com.sheepit.client.standalone.Worker"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
from {
|
|
|
|
|
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|