forked from openrewrite/rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
32 lines (27 loc) · 935 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id("org.openrewrite.build.language-library")
id("org.openrewrite.build.java8-text-blocks")
}
dependencies {
implementation("org.assertj:assertj-core:latest.release")
implementation(project(":rewrite-java"))
implementation(project(":rewrite-java-test"))
implementation(project(":rewrite-test"))
if (System.getProperty("idea.active") != null ||
System.getProperty("idea.sync.active") != null) {
// so we can run tests in the IDE with the IntelliJ IDEA runner
runtimeOnly(project(":rewrite-java-17"))
}
}
tasks.withType<Javadoc> {
isFailOnError = false
exclude("org/openrewrite/java/**")
}
tasks.withType<JavaCompile> {
options.release.set(null as? Int?) // remove `--release 8` set in `org.openrewrite.java-base`
}
configurations.all {
if (isCanBeConsumed) {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
}
}