-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
72 lines (54 loc) · 2.92 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
72 lines (54 loc) · 2.92 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
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 = "Apache Migration"
recipeDependencies {
parserClasspath("commons-io:commons-io:2.+")
parserClasspath("org.apache.commons:commons-collections4:4.4")
parserClasspath("org.apache.commons:commons-lang3:3.+")
parserClasspath("org.apache.httpcomponents.client5:httpclient5:5.+")
parserClasspath("org.apache.httpcomponents.core5:httpcore5:5.+")
parserClasspath("org.apache.httpcomponents:httpclient:4.5.14")
parserClasspath("org.apache.httpcomponents:httpasyncclient:4.1.5")
parserClasspath("org.apache.httpcomponents:httpcore-nio:4.4.16")
parserClasspath("org.apache.httpcomponents:httpcore:4.4.16")
parserClasspath("org.apache.httpcomponents:httpmime:4.5.14")
parserClasspath("org.apache.maven.shared:maven-shared-utils:3.+")
parserClasspath("org.apache.poi:poi:3.16")
parserClasspath("org.codehaus.plexus:plexus-utils:4.+")
}
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))
implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite.recipe:rewrite-java-dependencies:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-logging-frameworks:$rewriteVersion")
implementation("org.openrewrite.recipe:rewrite-static-analysis:$rewriteVersion")
implementation("org.openrewrite:rewrite-templating:$rewriteVersion")
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")
}
compileOnly("commons-io:commons-io:2.+")
compileOnly("org.apache.commons:commons-lang3:3.+")
compileOnly("org.apache.maven.shared:maven-shared-utils:3.+")
compileOnly("org.codehaus.plexus:plexus-utils:4.+")
implementation("org.jspecify:jspecify:1.0.0")
testImplementation("org.openrewrite:rewrite-java-21")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("org.openrewrite:rewrite-maven")
testImplementation("commons-codec:commons-codec:1.+")
testImplementation("commons-collections:commons-collections:3.2.2")
testImplementation("org.apache.commons:commons-collections4:4.4")
testImplementation("org.apache.commons:commons-math:2.2")
testImplementation("org.apache.commons:commons-math3:3.+")
testImplementation("commons-lang:commons-lang:2.6")
testImplementation("org.apache.commons:commons-lang3:3.5")
testRuntimeOnly("org.codehaus.plexus:plexus-container-default:2.+")
}
tasks.withType<JavaCompile> {
options.compilerArgs.add("-Arewrite.javaParserClasspathFrom=resources")
}