39 lines
871 B
Groovy
39 lines
871 B
Groovy
plugins {
|
|
id 'base'
|
|
}
|
|
|
|
ext {
|
|
grpcVersion = '1.76.0'
|
|
junitVersion = '5.14.1'
|
|
picocliVersion = '4.7.7'
|
|
protobufVersion = '4.33.1'
|
|
}
|
|
|
|
subprojects {
|
|
group = 'com.dohertylan.mxgateway'
|
|
version = '0.1.0'
|
|
|
|
pluginManager.withPlugin('java') {
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
options.release = 21
|
|
}
|
|
|
|
tasks.withType(Test).configureEach {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation platform("org.junit:junit-bom:${junitVersion}")
|
|
testImplementation 'org.junit.jupiter:junit-jupiter'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
}
|
|
}
|