31 lines
493 B
Plaintext
31 lines
493 B
Plaintext
plugins {
|
|
java
|
|
`java-library`
|
|
id("twomartens.base")
|
|
application
|
|
}
|
|
|
|
val projectSourceCompatibility: String = rootProject.properties["projectSourceCompatibility"].toString()
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(projectSourceCompatibility))
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
tasks.register("buildAll") {
|
|
group = "build"
|
|
dependsOn("build")
|
|
dependsOn("test")
|
|
}
|
|
|
|
tasks.clean {
|
|
doFirst {
|
|
delete("out")
|
|
}
|
|
}
|