rusefi/java_tools/build.gradle

44 lines
978 B
Groovy
Raw Permalink Normal View History

apply from: 'dependencies.gradle'
allprojects {
repositories {
mavenCentral()
}
plugins.withType(JavaPlugin) {
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
}