Skip to content

Commit be18206

Browse files
committed
Prepare for releasing 4.0.0
1 parent 0575982 commit be18206

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

build.gradle.kts

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ plugins {
3232
id("nebula.source-jar") version "17.3.2"
3333
id("nebula.maven-apache-license") version "17.3.2"
3434
}
35+
apply(plugin = "nebula.publish-verification")
3536

3637
configure<nebula.plugin.release.git.base.ReleasePluginExtension> {
3738
defaultVersionStrategy = nebula.plugin.release.NetflixOssStrategies.SNAPSHOT(project)
@@ -69,24 +70,19 @@ configurations.all {
6970
cacheChangingModulesFor(0, TimeUnit.SECONDS)
7071
cacheDynamicVersionsFor(0, TimeUnit.SECONDS)
7172
}
72-
73-
// We use kotlin exclusively for tests
74-
// The kotlin plugin adds kotlin-stdlib dependencies to the main sourceSet, even if it doesn't use any kotlin
75-
// To avoid shipping dependencies we don't actually need, exclude them from the main sourceSet classpath but add them _back_ in for the test source sets
76-
if (name == "compileClasspath" || name == "runtimeClasspath") {
77-
exclude(group = "org.jetbrains.kotlin")
78-
}
7973
}
8074

75+
val rewriteVersion = "latest.release"
76+
val testingFrameworksVersion = "latest.release"
8177
dependencies {
8278
compileOnly("org.projectlombok:lombok:latest.release")
8379
annotationProcessor("org.projectlombok:lombok:latest.release")
8480

85-
implementation("org.openrewrite:rewrite-java:latest.integration")
86-
implementation("org.openrewrite:rewrite-xml:latest.integration")
87-
implementation("org.openrewrite:rewrite-properties:latest.integration")
88-
implementation("org.openrewrite:rewrite-yaml:latest.integration")
89-
implementation("org.openrewrite:rewrite-maven:latest.integration")
81+
implementation("org.openrewrite:rewrite-java:${rewriteVersion}")
82+
implementation("org.openrewrite:rewrite-xml:${rewriteVersion}")
83+
implementation("org.openrewrite:rewrite-properties:${rewriteVersion}")
84+
implementation("org.openrewrite:rewrite-yaml:${rewriteVersion}")
85+
implementation("org.openrewrite:rewrite-maven:${rewriteVersion}")
9086

9187
// for locating list of released Spring Boot versions
9288
implementation("com.squareup.okhttp3:okhttp:latest.release")
@@ -95,7 +91,7 @@ dependencies {
9591
// see https://github.com/gradle/kotlin-dsl-samples/issues/1301 for why (okhttp is leaking parts of kotlin stdlib)
9692
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
9793

98-
runtimeOnly("org.openrewrite.recipe:rewrite-testing-frameworks:latest.integration")
94+
runtimeOnly("org.openrewrite.recipe:rewrite-testing-frameworks:${testingFrameworksVersion}")
9995

10096
testImplementation("org.jetbrains.kotlin:kotlin-reflect")
10197
testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
@@ -104,7 +100,7 @@ dependencies {
104100
testImplementation("org.junit.jupiter:junit-jupiter-params:latest.release")
105101
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:latest.release")
106102

107-
testImplementation("org.openrewrite:rewrite-test:latest.integration")
103+
testImplementation("org.openrewrite:rewrite-test:${rewriteVersion}")
108104

109105
testImplementation("org.assertj:assertj-core:latest.release")
110106
testImplementation("com.github.marschall:memoryfilesystem:latest.release")
@@ -114,8 +110,8 @@ dependencies {
114110
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:latest.release")
115111
testImplementation("io.github.classgraph:classgraph:latest.release")
116112

117-
testRuntimeOnly("org.openrewrite:rewrite-java-11:latest.integration")
118-
testRuntimeOnly("org.openrewrite:rewrite-java-8:latest.integration")
113+
testRuntimeOnly("org.openrewrite:rewrite-java-11:${rewriteVersion}")
114+
testRuntimeOnly("org.openrewrite:rewrite-java-8:${rewriteVersion}")
119115

120116
testRuntimeOnly("junit:junit:latest.release")
121117
testRuntimeOnly("org.springframework:spring-test:4.+")
@@ -186,10 +182,7 @@ configure<PublishingExtension> {
186182
while (i < length) {
187183
(dependencyList.item(i) as org.w3c.dom.Element).let { dependency ->
188184
if ((dependency.getElementsByTagName("scope")
189-
.item(0) as org.w3c.dom.Element).textContent == "provided"
190-
|| (dependency.getElementsByTagName("groupId")
191-
.item(0) as org.w3c.dom.Element).textContent == "org.jetbrains.kotlin"
192-
) {
185+
.item(0) as org.w3c.dom.Element).textContent == "provided") {
193186
dependencies.removeChild(dependency)
194187
i--
195188
length--

0 commit comments

Comments
 (0)