2022-10-15 06:57:36 -07:00
|
|
|
|
|
|
|
apply from: 'dependencies.gradle'
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins.withType(JavaPlugin) {
|
2024-09-02 05:53:25 -07:00
|
|
|
java {
|
2024-11-01 09:35:36 -07:00
|
|
|
// TS still comes with 1.8 and we have a plugin, lets build compatible
|
|
|
|
sourceCompatibility = '8'
|
|
|
|
targetCompatibility = '8'
|
2024-11-01 18:48:17 -07:00
|
|
|
// [tag:java8]
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(11))
|
|
|
|
}
|
2024-09-02 05:53:25 -07:00
|
|
|
}
|
2024-08-16 14:51:27 -07:00
|
|
|
|
2024-09-02 05:53:25 -07:00
|
|
|
dependencies {
|
2022-10-15 06:57:36 -07:00
|
|
|
implementation global_libs.annotations
|
2023-12-15 06:51:08 -08:00
|
|
|
testImplementation global_libs.junit5
|
|
|
|
testImplementation global_libs.junit5engine
|
2022-10-15 06:57:36 -07:00
|
|
|
}
|
2023-12-15 08:26:40 -08:00
|
|
|
|
|
|
|
test {
|
|
|
|
// Enable JUnit 5
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2022-10-15 06:57:36 -07:00
|
|
|
}
|
2023-07-14 13:28:43 -07:00
|
|
|
|
2023-07-19 11:45:10 -07:00
|
|
|
gradle.projectsEvaluated {
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-14 13:28:43 -07:00
|
|
|
tasks.withType(JavaExec).configureEach {
|
|
|
|
if (name.endsWith("main()")) {
|
|
|
|
// https://github.com/gradle/gradle/issues/21364
|
|
|
|
notCompatibleWithConfigurationCache("JavaExec created by IntelliJ")
|
|
|
|
}
|
|
|
|
}
|
2022-10-15 06:57:36 -07:00
|
|
|
}
|
2022-11-20 21:51:52 -08:00
|
|
|
|
2023-05-30 19:16:29 -07:00
|
|
|
tasks.named('wrapper') {
|
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
|
|
}
|
|
|
|
|
2023-12-15 06:51:08 -08:00
|
|
|
// gradlew allDeps
|
2022-11-20 21:51:52 -08:00
|
|
|
subprojects {
|
|
|
|
task allDeps(type: DependencyReportTask) {}
|
2023-12-15 06:51:08 -08:00
|
|
|
}
|