plugins {
id ‘java’
id ‘jacoco’
}
version ‘1.0-SNAPSHOT’
sourceCompatibility = 1.11
repositories {
mavenCentral()
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
}
test {
finalizedBy jacocoTestReport
}