rusefi/java_tools/build.gradle

48 lines
1.1 KiB
Groovy
Raw Normal View History

apply from: 'dependencies.gradle'
allprojects {
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
dependencies {
2024-08-16 14:51:27 -07:00
// let's be vocal that 1.8 is not enough
sourceCompatibility = '11'
targetCompatibility = '11'
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
}