rusefi/java_tools/build.gradle

54 lines
1.2 KiB
Groovy
Raw Normal View History

apply from: 'dependencies.gradle'
allprojects {
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
2024-09-02 05:53:25 -07:00
java {
// 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 {
implementation global_libs.annotations
2023-12-15 06:51:08 -08:00
testImplementation global_libs.junit5
testImplementation global_libs.junit5engine
}
2023-12-15 08:26:40 -08:00
test {
// Enable JUnit 5
useJUnitPlatform()
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
tasks.withType(JavaExec).configureEach {
if (name.endsWith("main()")) {
// https://github.com/gradle/gradle/issues/21364
notCompatibleWithConfigurationCache("JavaExec created by IntelliJ")
}
}
}
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
}