Skip to content

Commit

Permalink
Use shadow to unpack recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Feb 15, 2024
1 parent ad89473 commit a18d2bc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id("org.openrewrite.build.recipe-library") version "latest.release"
id("com.github.johnrengelman.shadow") version "latest.release"
}

group = "org.openrewrite.recipe"
Expand All @@ -9,13 +12,22 @@ val rewriteVersion = rewriteRecipe.rewriteVersion.get()
dependencies {
implementation(platform("org.openrewrite:rewrite-bom:$rewriteVersion"))

implementation("org.openrewrite:rewrite-java")
implementation("org.openrewrite:rewrite-templating:${rewriteVersion}")
implementation("tech.picnic.error-prone-support:error-prone-contrib:latest.release")
runtimeOnly("org.openrewrite:rewrite-java")
runtimeOnly("org.openrewrite:rewrite-templating:${rewriteVersion}")
runtimeOnly("tech.picnic.error-prone-support:error-prone-contrib:latest.release")

testImplementation("org.openrewrite:rewrite-java-17")
testImplementation("org.openrewrite:rewrite-java")
testImplementation("org.openrewrite:rewrite-test")
testImplementation("tech.picnic.error-prone-support:error-prone-contrib:latest.release")

testImplementation("org.junit.jupiter:junit-jupiter-engine:latest.release")
testRuntimeOnly("org.openrewrite:rewrite-java-17")
testRuntimeOnly("org.gradle:gradle-tooling-api:latest.release")
}

tasks.withType<ShadowJar> {
archiveClassifier.set("")
dependencies {
include(dependency("tech.picnic.error-prone-support:error-prone-contrib"))
}
}

0 comments on commit a18d2bc

Please sign in to comment.