diff --git a/rewrite-javascript-remote/build.gradle.kts b/rewrite-javascript-remote/build.gradle.kts index 75804bc0..13cdccee 100644 --- a/rewrite-javascript-remote/build.gradle.kts +++ b/rewrite-javascript-remote/build.gradle.kts @@ -3,8 +3,7 @@ plugins { } -//val latest = if (System.getenv("RELEASE_PUBLICATION") != null) "latest.release" else "latest.integration" -val latest = "latest.release"; +val latest = if (project.hasProperty("nebula.release")) "latest.release" else "latest.integration" dependencies { compileOnly("com.google.auto.service:auto-service-annotations:1.1.1") diff --git a/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/Extensions.java b/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/Extensions.java index 2d8ba5ae..fe5c4d31 100644 --- a/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/Extensions.java +++ b/rewrite-javascript-remote/src/main/java/org/openrewrite/javascript/remote/Extensions.java @@ -22,58 +22,58 @@ class Extensions { public static void sendContainer(JContainer container, SenderContext ctx) { - org.openrewrite.remote.java.Extensions.sendContainer(container, ctx); + org.openrewrite.java.remote.Extensions.sendContainer(container, ctx); } public static void sendLeftPadded(JLeftPadded leftPadded, SenderContext ctx) { - org.openrewrite.remote.java.Extensions.sendLeftPadded(leftPadded, ctx); + org.openrewrite.java.remote.Extensions.sendLeftPadded(leftPadded, ctx); } public static void sendRightPadded(JRightPadded rightPadded, SenderContext ctx) { - org.openrewrite.remote.java.Extensions.sendRightPadded(rightPadded, ctx); + org.openrewrite.java.remote.Extensions.sendRightPadded(rightPadded, ctx); } public static void sendSpace(Space space, SenderContext ctx) { - org.openrewrite.remote.java.Extensions.sendSpace(space, ctx); + org.openrewrite.java.remote.Extensions.sendSpace(space, ctx); } public static void sendComment(Comment comment, SenderContext ctx) { - org.openrewrite.remote.java.Extensions.sendComment(comment, ctx); + org.openrewrite.java.remote.Extensions.sendComment(comment, ctx); } public static JContainer receiveContainer(@Nullable JContainer container, @Nullable Class type, ReceiverContext ctx) { - return org.openrewrite.remote.java.Extensions.receiveContainer(container, type, ctx); + return org.openrewrite.java.remote.Extensions.receiveContainer(container, type, ctx); } public static ReceiverContext.DetailsReceiver> leftPaddedValueReceiver(Class valueType) { - return org.openrewrite.remote.java.Extensions.leftPaddedValueReceiver(valueType); + return org.openrewrite.java.remote.Extensions.leftPaddedValueReceiver(valueType); } public static ReceiverContext.DetailsReceiver> leftPaddedNodeReceiver(Class nodeType) { - return org.openrewrite.remote.java.Extensions.leftPaddedNodeReceiver(nodeType); + return org.openrewrite.java.remote.Extensions.leftPaddedNodeReceiver(nodeType); } public static JLeftPadded receiveLeftPaddedTree(@Nullable JLeftPadded leftPadded, @Nullable Class type, ReceiverContext ctx) { - return org.openrewrite.remote.java.Extensions.receiveLeftPaddedTree(leftPadded, type, ctx); + return org.openrewrite.java.remote.Extensions.receiveLeftPaddedTree(leftPadded, type, ctx); } public static ReceiverContext.DetailsReceiver> rightPaddedValueReceiver(Class valueType) { - return org.openrewrite.remote.java.Extensions.rightPaddedValueReceiver(valueType); + return org.openrewrite.java.remote.Extensions.rightPaddedValueReceiver(valueType); } public static ReceiverContext.DetailsReceiver> rightPaddedNodeReceiver(Class nodeType) { - return org.openrewrite.remote.java.Extensions.rightPaddedNodeReceiver(nodeType); + return org.openrewrite.java.remote.Extensions.rightPaddedNodeReceiver(nodeType); } public static JRightPadded receiveRightPaddedTree(@Nullable JRightPadded rightPadded, @Nullable Class type, ReceiverContext ctx) { - return org.openrewrite.remote.java.Extensions.receiveRightPaddedTree(rightPadded, type, ctx); + return org.openrewrite.java.remote.Extensions.receiveRightPaddedTree(rightPadded, type, ctx); } public static Space receiveSpace(@Nullable Space space, Class type, ReceiverContext ctx) { - return org.openrewrite.remote.java.Extensions.receiveSpace(space, type, ctx); + return org.openrewrite.java.remote.Extensions.receiveSpace(space, type, ctx); } public static Comment receiveComment(@Nullable Comment comment, @Nullable Class type, ReceiverContext ctx) { - return org.openrewrite.remote.java.Extensions.receiveComment(comment, type, ctx); + return org.openrewrite.java.remote.Extensions.receiveComment(comment, type, ctx); } } diff --git a/rewrite-javascript/build.gradle.kts b/rewrite-javascript/build.gradle.kts index 2f8c4fb7..f7fba6b6 100644 --- a/rewrite-javascript/build.gradle.kts +++ b/rewrite-javascript/build.gradle.kts @@ -5,8 +5,7 @@ plugins { } -//val latest = if (System.getenv("RELEASE_PUBLICATION") != null) "latest.release" else "latest.integration" -val latest = "latest.release"; +val latest = if (project.hasProperty("nebula.release")) "latest.release" else "latest.integration" dependencies { compileOnly("org.openrewrite:rewrite-test") diff --git a/rewrite-test-engine-remote/build.gradle.kts b/rewrite-test-engine-remote/build.gradle.kts index 771b8d92..a4331a76 100644 --- a/rewrite-test-engine-remote/build.gradle.kts +++ b/rewrite-test-engine-remote/build.gradle.kts @@ -7,7 +7,7 @@ application { mainClass = "org.openrewrite.remote.java.RemotingServer" } -val latest = if (System.getenv("RELEASE_PUBLICATION") != null) "latest.release" else "latest.integration" +val latest = if (project.hasProperty("nebula.release")) "latest.release" else "latest.integration" dependencies {