Skip to content

Commit

Permalink
Fix dependency version numbers to avoid publishing plugin poms still …
Browse files Browse the repository at this point in the history
…containing 'latest.release'
  • Loading branch information
sambsnyd committed Jan 26, 2021
1 parent 22f85ca commit b9f62ca
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
32 changes: 17 additions & 15 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
java
groovy
`java-gradle-plugin`
id("com.gradle.plugin-publish") version("0.11.0")
id("com.gradle.plugin-publish") version("0.12.0")
id("io.spring.release") version ("0.20.1") apply (false)
}

Expand Down Expand Up @@ -64,21 +64,23 @@ val plugin: Configuration by configurations.creating

configurations.getByName("compileOnly").extendsFrom(plugin)

val rewriteVersion = "6.1.15"
val prometheusVersion = "1.3.0"
val nettyVersion = "1.1.0"
dependencies {
plugin("org.openrewrite:rewrite-java:latest.release")

plugin("io.micrometer.prometheus:prometheus-rsocket-client:latest.release")
plugin("io.rsocket:rsocket-transport-netty:latest.release")

implementation("org.openrewrite:rewrite-java-11:latest.release")
implementation("org.openrewrite:rewrite-java-8:latest.release")
implementation("org.openrewrite:rewrite-xml:latest.release")
implementation("org.openrewrite:rewrite-maven:latest.release")
implementation("org.openrewrite:rewrite-properties:latest.release")
implementation("org.openrewrite:rewrite-yaml:latest.release")
api("org.openrewrite:rewrite-java:latest.release")
api("io.micrometer.prometheus:prometheus-rsocket-client:latest.release")
api("io.rsocket:rsocket-transport-netty:latest.release")
plugin("org.openrewrite:rewrite-java:$rewriteVersion")
plugin("io.micrometer.prometheus:prometheus-rsocket-client:$prometheusVersion")
plugin("io.rsocket:rsocket-transport-netty:$nettyVersion")

implementation("org.openrewrite:rewrite-java-11:$rewriteVersion")
implementation("org.openrewrite:rewrite-java-8:$rewriteVersion")
implementation("org.openrewrite:rewrite-xml:$rewriteVersion")
implementation("org.openrewrite:rewrite-maven:$rewriteVersion")
implementation("org.openrewrite:rewrite-properties:$rewriteVersion")
implementation("org.openrewrite:rewrite-yaml:$rewriteVersion")
api("org.openrewrite:rewrite-java:$rewriteVersion")
api("io.micrometer.prometheus:prometheus-rsocket-client:$prometheusVersion")
api("io.rsocket:rsocket-transport-netty:$nettyVersion")

testImplementation(gradleTestKit())
testImplementation("org.codehaus.groovy:groovy-all:2.5.10")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class RewritePluginTest extends RewriteTestBase {
import org.junit.Test;
public class ATestClass {
@Test
public void passes() { }
}
Expand All @@ -182,6 +183,7 @@ class RewritePluginTest extends RewriteTestBase {
import org.junit.Test;
public class BTestClass {
@Test
public void passes() { }
}
Expand All @@ -196,8 +198,9 @@ class RewritePluginTest extends RewriteTestBase {
import org.junit.jupiter.api.Test;
public class BTestClass {
@Test
public void passes() { }
void passes() { }
}
""".stripIndent()
String aTestClassExpected = """\
Expand All @@ -206,8 +209,9 @@ class RewritePluginTest extends RewriteTestBase {
import org.junit.jupiter.api.Test;
public class ATestClass {
@Test
public void passes() { }
void passes() { }
}
""".stripIndent()
then:
Expand Down

0 comments on commit b9f62ca

Please sign in to comment.