-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
122 lines (106 loc) · 6.01 KB
/
build.gradle.kts
File metadata and controls
122 lines (106 loc) · 6.01 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
id("org.openrewrite.build.moderne-source-available-license") version "latest.release"
}
group = "org.openrewrite.recipe"
description = "Migrate to later Java versions. Automatically."
recipeDependencies {
parserClasspath("org.projectlombok:lombok:latest.release")
parserClasspath("jakarta.enterprise:jakarta.enterprise.cdi-api:3.0.0-M4")
parserClasspath("jakarta.inject:jakarta.inject-api:2.0.1")
parserClasspath("jakarta.servlet:jakarta.servlet-api:6.0.0")
parserClasspath("javax.persistence:javax.persistence-api:2.2")
parserClasspath("org.glassfish:javax.servlet:3.0")
parserClasspath("javax.annotation:javax.annotation-api:1.3.2")
parserClasspath("com.google.guava:guava:33.5.0-jre")
parserClasspath("com.google.errorprone:error_prone_core:2.+")
testParserClasspath("com.sun.faces:jsf-api:2.1.29-11")
testParserClasspath("jakarta.el:jakarta.el-api:4.0.0")
testParserClasspath("jakarta.enterprise:jakarta.enterprise.cdi-api:4.0.1")
testParserClasspath("jakarta.faces:jakarta.faces-api:3.0.0")
testParserClasspath("jakarta.faces:jakarta.faces-api:4.0.0-M6")
testParserClasspath("jakarta.faces:jakarta.faces-api:4.0.1")
testParserClasspath("jakarta.servlet:jakarta.servlet-api:4.0.2")
testParserClasspath("jakarta.servlet:jakarta.servlet-api:5.0.0")
testParserClasspath("jakarta.ws.rs:jakarta.ws.rs-api:3.1.0")
testParserClasspath("jakarta.xml.soap:jakarta.xml.soap-api:2.0.1")
testParserClasspath("javax.enterprise:cdi-api:2.0.SP1")
testParserClasspath("javax.inject:javax.inject:1")
testParserClasspath("javax.persistence:javax.persistence-api:2.2")
testParserClasspath("javax.servlet:javax.servlet-api:4.0.1")
testParserClasspath("javax.servlet.jsp:javax.servlet.jsp-api:2.3.3")
testParserClasspath("javax.transaction:javax.transaction-api:1.3")
testParserClasspath("javax.validation:validation-api:2.0.1.Final")
testParserClasspath("org.apache.ws.security:wss4j:1.6.19")
testParserClasspath("org.apache.wss4j:wss4j-ws-security-common:2.0.0")
testParserClasspath("org.glassfish:jakarta.faces:2.3.19")
testParserClasspath("org.glassfish:jakarta.faces:3.0.3")
}
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
compileOnly("org.projectlombok:lombok:latest.release")
compileOnly("org.apache.groovy:groovy:4.+")
annotationProcessor("org.projectlombok:lombok:latest.release")
testImplementation("org.projectlombok:lombok:latest.release")
annotationProcessor("org.openrewrite:rewrite-templating:$rewriteVersion")
compileOnly("com.google.errorprone:error_prone_core:2.+") {
exclude("com.google.auto.service", "auto-service-annotations")
exclude("io.github.eisop","dataflow-errorprone")
}
implementation(platform("org.openrewrite:rewrite-bom:${rewriteVersion}"))
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-properties")
implementation("org.openrewrite:rewrite-xml")
implementation("org.openrewrite:rewrite-json")
implementation("org.openrewrite:rewrite-maven")
implementation("org.openrewrite:rewrite-gradle")
implementation("org.openrewrite:rewrite-docker")
implementation("org.openrewrite.recipe:rewrite-github-actions:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-joda:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-jenkins:$rewriteVersion")
implementation("org.openrewrite:rewrite-templating:$rewriteVersion")
implementation("org.openrewrite.meta:rewrite-analysis:$rewriteVersion")
runtimeOnly("org.openrewrite:rewrite-java-8")
runtimeOnly("org.openrewrite:rewrite-java-11")
runtimeOnly("org.openrewrite:rewrite-java-17")
runtimeOnly("org.openrewrite:rewrite-java-21")
runtimeOnly("org.openrewrite:rewrite-java-25")
runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib:latest.release:recipes")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.14.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.14.2")
testImplementation("org.junit-pioneer:junit-pioneer:2.0.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.14.2")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("org.openrewrite:rewrite-kotlin")
testImplementation("org.openrewrite.gradle.tooling:model:$rewriteVersion")
testImplementation("org.assertj:assertj-core:latest.release")
testRuntimeOnly("com.fasterxml.jackson.datatype:jackson-datatype-jsr353")
testRuntimeOnly("com.fasterxml.jackson.core:jackson-core")
testRuntimeOnly("com.fasterxml.jackson.core:jackson-databind")
testRuntimeOnly("com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider")
testRuntimeOnly("com.fasterxml.jackson.module:jackson-module-jaxb-annotations")
testRuntimeOnly("commons-logging:commons-logging:1.3.2")
testRuntimeOnly("org.apache.logging.log4j:log4j-api:2.23.1")
testRuntimeOnly("org.apache.johnzon:johnzon-core:1.2.18")
testRuntimeOnly("org.apache.groovy:groovy:4.+")
testRuntimeOnly("org.jboss.logging:jboss-logging:3.6.0.Final")
testRuntimeOnly("jakarta.annotation:jakarta.annotation-api:2.1.1")
testRuntimeOnly("org.springframework:spring-core:6.1.13")
testRuntimeOnly("io.micronaut:micronaut-core:4.10.8")
testRuntimeOnly("com.google.code.findbugs:jsr305:3.0.2")
testRuntimeOnly("javax.mail:mail:1.4.7")
testRuntimeOnly("javax.mail:javax.mail-api:1.6.2")
testRuntimeOnly("javax.ws.rs:javax.ws.rs-api:2.1.1")
testRuntimeOnly(gradleApi())
}
tasks.withType(Javadoc::class.java) {
exclude("**/PlanJavaMigration.java")
}
tasks.test {
maxHeapSize = "2g" // Set max heap size to 2GB or adjust as necessary
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Arewrite.javaParserClasspathFrom=resources")
}