-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
81 lines (70 loc) · 3.73 KB
/
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
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
id("com.gradleup.shadow") version "latest.release"
id("org.owasp.dependencycheck") version "latest.release"
}
dependencyCheck {
analyzers.assemblyEnabled = false
analyzers.nodeAuditEnabled = false
analyzers.nodeEnabled = false
failBuildOnCVSS = System.getenv("FAIL_BUILD_ON_CVSS")?.toFloatOrNull() ?: 9.0F
format = System.getenv("DEPENDENCY_CHECK_FORMAT") ?: "HTML"
nvd.apiKey = System.getenv("NVD_API_KEY")
suppressionFile = "suppressions.xml"
}
group = "org.openrewrite.recipe"
description = "Third-party maintained OpenRewrite recipes"
val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))
runtimeOnly("org.openrewrite:rewrite-java")
runtimeOnly("org.openrewrite:rewrite-templating:${rewriteVersion}")
runtimeOnly("ai.timefold.solver:timefold-solver-migration:latest.release") {
exclude(module = "jakarta.xml.bind-api")
}
runtimeOnly("io.quarkus:quarkus-update-recipes:latest.release") {isTransitive = false}
runtimeOnly("org.apache.camel.upgrade:camel-upgrade-recipes:latest.release") {isTransitive = false}
runtimeOnly("org.apache.wicket:wicket-migration:latest.release") {isTransitive = false}
runtimeOnly("org.axonframework:axon-migration:latest.release") {isTransitive = false}
runtimeOnly("software.amazon.awssdk:v2-migration:latest.release")
runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib:latest.release:recipes")
// error-prone-contrib only has provided dependencies, whereas the platform needs these on the classpath at runtime
runtimeOnly("org.junit.jupiter:junit-jupiter-api:latest.release")
runtimeOnly("org.assertj:assertj-core:latest.release")
runtimeOnly("org.springframework:spring-context:5.3.32")
runtimeOnly("org.springframework:spring-test:5.3.32")
runtimeOnly("org.springframework:spring-web:5.3.32")
runtimeOnly("org.springframework:spring-webflux:5.3.32")
runtimeOnly("org.testng:testng:7.5")
runtimeOnly("io.projectreactor:reactor-core:latest.release")
runtimeOnly("io.projectreactor:reactor-test:latest.release")
runtimeOnly("io.projectreactor.addons:reactor-adapter:latest.release")
runtimeOnly("io.projectreactor.addons:reactor-extra:latest.release")
testImplementation("org.openrewrite:rewrite-java")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("tech.picnic.error-prone-support:error-prone-contrib:latest.release:recipes")
testImplementation("org.junit.jupiter:junit-jupiter-engine:latest.release")
testRuntimeOnly("org.openrewrite:rewrite-java-17")
testRuntimeOnly("org.gradle:gradle-tooling-api:latest.release")
}
// ./gradlew shadowJar
tasks.withType<ShadowJar> {
archiveClassifier.set("")
dependencies {
include(dependency("ai.timefold.solver:timefold-solver-migration"))
include(dependency("io.quarkus:quarkus-update-recipes:.*"))
include(dependency("org.apache.camel.upgrade:camel-upgrade-recipes"))
include(dependency("org.apache.wicket:wicket-migration"))
include(dependency("org.axonframework:axon-migration"))
include(dependency("software.amazon.awssdk:v2-migration"))
include(dependency("tech.picnic.error-prone-support:error-prone-contrib"))
}
// Redeclares existing Quarkus and OpenRewrite recipes
exclude("**/ToLatest9.yml")
relocate("quarkus-updates", "META-INF.rewrite")
// Amazon SDK v2 migration recipe contains some scripts
exclude("generate-recipes")
exclude("scripts/")
exclude("v1-v2-service-mapping-diffs.csv")
}