2016-11-03 07:38:32 -04:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
sourceCompatibility = '1.8'
|
|
|
|
targetCompatibility = '1.8'
|
|
|
|
|
|
|
|
compileJava {
|
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
java {
|
|
|
|
srcDir projectDir
|
|
|
|
exclude "tests/**"
|
|
|
|
}
|
|
|
|
resources {
|
|
|
|
srcDir projectDir
|
|
|
|
include '*.xml'
|
|
|
|
}
|
|
|
|
}
|
2021-09-07 14:06:38 -06:00
|
|
|
|
2016-11-03 07:38:32 -04:00
|
|
|
test {
|
|
|
|
java {
|
|
|
|
srcDir file("tests")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Logging:
|
2021-09-07 14:06:38 -06:00
|
|
|
implementation 'org.slf4j:slf4j-api:1.7.21'
|
|
|
|
implementation 'ch.qos.logback:logback-classic:1.1.7'
|
2016-11-03 07:38:32 -04:00
|
|
|
// You can also use the JDK's built-in logging as the back end:
|
2016-11-03 07:49:40 -04:00
|
|
|
// compile group: 'org.slf4j:slf4j-jdk14:1.7.21'
|
2021-09-07 14:06:38 -06:00
|
|
|
}
|