Skip to content

Commit

Permalink
Adopt error-prone-contrib:0.18.0:recipes (#14)
Browse files Browse the repository at this point in the history
* Adopt error-prone-contrib:0.18.0:recipes

* Drop classifier from include dependency
  • Loading branch information
timtebeek authored Aug 11, 2024
1 parent 0b7b98f commit 8ca92e7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
runtimeOnly("io.quarkus:quarkus-update-recipes:latest.release")
runtimeOnly("org.apache.wicket:wicket-migration:latest.release")
runtimeOnly("org.axonframework:axon-migration:latest.release")
runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib: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")
Expand All @@ -39,13 +39,14 @@ dependencies {
testImplementation("org.openrewrite:rewrite-java")
testImplementation("org.openrewrite:rewrite-test")

testImplementation("tech.picnic.error-prone-support:error-prone-contrib:latest.release")
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 {
Expand All @@ -55,10 +56,6 @@ tasks.withType<ShadowJar> {
include(dependency("org.axonframework:axon-migration"))
include(dependency("tech.picnic.error-prone-support:error-prone-contrib"))
}
// Binary files for ErrorProne; not needed for recipes
exclude("**/*.refaster")
exclude("**/*Rules.class")
exclude("**/bugpatterns/")
// Redeclares existing Quarkus and OpenRewrite recipes
exclude("**/ToLatest9.yml")
relocate("quarkus-updates", "META-INF.rewrite")
Expand Down

0 comments on commit 8ca92e7

Please sign in to comment.