diff --git a/rewrite-csharp/build.gradle.kts b/rewrite-csharp/build.gradle.kts index f142147..5c6f5a9 100644 --- a/rewrite-csharp/build.gradle.kts +++ b/rewrite-csharp/build.gradle.kts @@ -2,10 +2,12 @@ plugins { id("org.openrewrite.build.language-library") } +val latest = if (System.getenv("RELEASE_PUBLICATION") != null) "latest.release" else "latest.integration" + dependencies { // The bom version can also be set to a specific version // https://github.com/openrewrite/rewrite-recipe-bom/releases - implementation(platform("org.openrewrite:rewrite-bom:latest.release")) + implementation(platform("org.openrewrite:rewrite-bom:${latest}")) implementation("org.openrewrite:rewrite-core") implementation("org.openrewrite:rewrite-java")