-
Notifications
You must be signed in to change notification settings - Fork 519
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
46 lines (39 loc) · 1.37 KB
/
build.gradle.kts
File metadata and controls
46 lines (39 loc) · 1.37 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
plugins {
id("org.openrewrite.build.language-library")
}
recipeDependencies {
parserClasspath("jakarta.persistence:jakarta.persistence-api:3.1.0")
}
dependencies {
implementation("org.assertj:assertj-core:latest.release")
implementation(project(":rewrite-java"))
implementation(project(":rewrite-gradle"))
implementation(project(":rewrite-groovy"))
implementation(project(":rewrite-test"))
testImplementation("io.github.classgraph:classgraph:latest.release")
testImplementation("org.junit-pioneer:junit-pioneer:2.0.0")
testRuntimeOnly(project(":rewrite-java-21"))
testRuntimeOnly("org.apache.hbase:hbase-shaded-client:2.4.11")
testRuntimeOnly("com.google.guava:guava:latest.release")
testRuntimeOnly("org.mapstruct:mapstruct:latest.release")
testRuntimeOnly(project(":rewrite-yaml"))
testImplementation(project(":rewrite-properties"))
testImplementation(project(":rewrite-xml"))
}
tasks.withType<Javadoc>().configureEach {
isFailOnError = false
exclude("org/openrewrite/java/**")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.withType<Test>().configureEach {
systemProperty("junit.jupiter.extensions.autodetection.enabled", true)
}
configurations.all {
if (isCanBeConsumed) {
attributes.attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8)
}
}