Skip to content

Commit e45a3f4

Browse files
committed
Rename non-Framework project modules
Prior to this commit, the Spring Framework build would mix proper framework modules (spring-* modules published to maven central) and internal modules such as: * "spring-framework-bom" (which publishes the Framework BOM with all modules) * "spring-core-coroutines" which is an internal modules for Kotlin compilation only This commit renames these modules so that they don't start with "spring-*"; we're also moving the "kotlin-coroutines" module under "spring-core", since it's merged in the resulting JAR. See gh-23282
1 parent 6ce5f9d commit e45a3f4

File tree

10 files changed

+14
-13
lines changed

10 files changed

+14
-13
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ classes/
2121
/build
2222
buildSrc/build
2323
/spring-*/build
24+
/spring-core/kotlin-coroutines/build
25+
/framework-bom/build
2426
/integration-tests/build
2527
/src/asciidoc/build
2628
target/

build.gradle

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ plugins {
1717
}
1818

1919
ext {
20-
moduleProjects = subprojects.findAll {
21-
(it.name != "spring-framework-bom") && (it.name != "spring-core-coroutines") && (it.name != "integration-tests")
22-
}
20+
moduleProjects = subprojects.findAll { it.name.startsWith("spring-") }
2321

2422
aspectjVersion = "1.9.4"
2523
coroutinesVersion = "1.3.0-RC2"

settings.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ include "spring-context"
55
include "spring-context-support"
66
include "spring-context-indexer"
77
include "spring-core"
8-
include "spring-core-coroutines"
8+
include "kotlin-coroutines"
9+
project(':kotlin-coroutines').projectDir = file('spring-core/kotlin-coroutines')
910
include "spring-expression"
1011
include "spring-instrument"
1112
include "spring-jcl"
@@ -20,7 +21,7 @@ include "spring-web"
2021
include "spring-webmvc"
2122
include "spring-webflux"
2223
include "spring-websocket"
23-
include "spring-framework-bom"
24+
include "framework-bom"
2425
include "integration-tests"
2526

2627
rootProject.name = "spring"

spring-core-coroutines/spring-core-coroutines.gradle renamed to spring-core/kotlin-coroutines/kotlin-coroutines.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies {
1111
}
1212

1313
// Avoid publishing coroutines JAR to the artifact repository
14-
if (project.hasProperty("artifactoryPublish")) {
14+
if (pluginManager.hasPlugin("artifactoryPublish")) {
1515
artifactoryPublish.skip = true
1616
}
1717

spring-core/spring-core.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ dependencies {
7070
cglib("cglib:cglib:${cglibVersion}@jar")
7171
objenesis("org.objenesis:objenesis:${objenesisVersion}@jar")
7272
jarjar("org.pantsbuild:jarjar:1.7.2")
73-
coroutines(project(":spring-core-coroutines"))
73+
coroutines(project(":kotlin-coroutines"))
7474

7575
compile(files(cglibRepackJar))
7676
compile(files(objenesisRepackJar))
7777
compile(project(":spring-jcl"))
78-
compileOnly(project(":spring-core-coroutines"))
78+
compileOnly(project(":kotlin-coroutines"))
7979
optional("net.sf.jopt-simple:jopt-simple:5.0.4")
8080
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
8181
optional("org.jetbrains.kotlin:kotlin-reflect")
@@ -94,7 +94,7 @@ dependencies {
9494
testCompile("com.fasterxml.woodstox:woodstox-core:5.2.0") {
9595
exclude group: "stax", module: "stax-api"
9696
}
97-
testCompile(project(":spring-core-coroutines"))
97+
testCompile(project(":kotlin-coroutines"))
9898
}
9999

100100
jar {

spring-messaging/spring-messaging.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencyManagement {
1212
dependencies {
1313
compile(project(":spring-beans"))
1414
compile(project(":spring-core"))
15-
compileOnly(project(":spring-core-coroutines"))
15+
compileOnly(project(":kotlin-coroutines"))
1616
optional(project(":spring-context"))
1717
optional(project(":spring-oxm"))
1818
optional("io.projectreactor.netty:reactor-netty")
@@ -37,7 +37,7 @@ dependencies {
3737
testCompile("org.jetbrains.kotlin:kotlin-stdlib")
3838
testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
3939
testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
40-
testCompile(project(":spring-core-coroutines"))
40+
testCompile(project(":kotlin-coroutines"))
4141
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
4242
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
4343
testRuntime("com.sun.activation:javax.activation:1.2.0")

spring-webflux/spring-webflux.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
compile(project(":spring-core"))
1616
compile(project(":spring-web"))
1717
compile("io.projectreactor:reactor-core")
18-
compileOnly(project(":spring-core-coroutines"))
18+
compileOnly(project(":kotlin-coroutines"))
1919
optional(project(":spring-context"))
2020
optional(project(":spring-context-support")) // for FreeMarker support
2121
optional("javax.servlet:javax.servlet-api:4.0.1")
@@ -57,7 +57,7 @@ dependencies {
5757
testCompile("org.eclipse.jetty:jetty-servlet")
5858
testCompile("org.eclipse.jetty:jetty-reactive-httpclient:1.0.3")
5959
testCompile("com.squareup.okhttp3:mockwebserver:3.14.2")
60-
testCompile(project(":spring-core-coroutines"))
60+
testCompile(project(":kotlin-coroutines"))
6161
testCompile("org.jetbrains.kotlin:kotlin-script-runtime")
6262
testRuntime("org.jetbrains.kotlin:kotlin-scripting-jsr223-embeddable")
6363
testRuntime("org.jruby:jruby:9.2.7.0")

0 commit comments

Comments
 (0)