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
This commit is contained in:
Brian Clozel 2019-08-21 14:28:42 +02:00
parent 6ce5f9da06
commit e45a3f4738
10 changed files with 14 additions and 13 deletions

2
.gitignore vendored
View File

@ -21,6 +21,8 @@ classes/
/build /build
buildSrc/build buildSrc/build
/spring-*/build /spring-*/build
/spring-core/kotlin-coroutines/build
/framework-bom/build
/integration-tests/build /integration-tests/build
/src/asciidoc/build /src/asciidoc/build
target/ target/

View File

@ -17,9 +17,7 @@ plugins {
} }
ext { ext {
moduleProjects = subprojects.findAll { moduleProjects = subprojects.findAll { it.name.startsWith("spring-") }
(it.name != "spring-framework-bom") && (it.name != "spring-core-coroutines") && (it.name != "integration-tests")
}
aspectjVersion = "1.9.4" aspectjVersion = "1.9.4"
coroutinesVersion = "1.3.0-RC2" coroutinesVersion = "1.3.0-RC2"

View File

@ -5,7 +5,8 @@ include "spring-context"
include "spring-context-support" include "spring-context-support"
include "spring-context-indexer" include "spring-context-indexer"
include "spring-core" include "spring-core"
include "spring-core-coroutines" include "kotlin-coroutines"
project(':kotlin-coroutines').projectDir = file('spring-core/kotlin-coroutines')
include "spring-expression" include "spring-expression"
include "spring-instrument" include "spring-instrument"
include "spring-jcl" include "spring-jcl"
@ -20,7 +21,7 @@ include "spring-web"
include "spring-webmvc" include "spring-webmvc"
include "spring-webflux" include "spring-webflux"
include "spring-websocket" include "spring-websocket"
include "spring-framework-bom" include "framework-bom"
include "integration-tests" include "integration-tests"
rootProject.name = "spring" rootProject.name = "spring"

View File

@ -11,7 +11,7 @@ dependencies {
} }
// Avoid publishing coroutines JAR to the artifact repository // Avoid publishing coroutines JAR to the artifact repository
if (project.hasProperty("artifactoryPublish")) { if (pluginManager.hasPlugin("artifactoryPublish")) {
artifactoryPublish.skip = true artifactoryPublish.skip = true
} }

View File

@ -70,12 +70,12 @@ dependencies {
cglib("cglib:cglib:${cglibVersion}@jar") cglib("cglib:cglib:${cglibVersion}@jar")
objenesis("org.objenesis:objenesis:${objenesisVersion}@jar") objenesis("org.objenesis:objenesis:${objenesisVersion}@jar")
jarjar("org.pantsbuild:jarjar:1.7.2") jarjar("org.pantsbuild:jarjar:1.7.2")
coroutines(project(":spring-core-coroutines")) coroutines(project(":kotlin-coroutines"))
compile(files(cglibRepackJar)) compile(files(cglibRepackJar))
compile(files(objenesisRepackJar)) compile(files(objenesisRepackJar))
compile(project(":spring-jcl")) compile(project(":spring-jcl"))
compileOnly(project(":spring-core-coroutines")) compileOnly(project(":kotlin-coroutines"))
optional("net.sf.jopt-simple:jopt-simple:5.0.4") optional("net.sf.jopt-simple:jopt-simple:5.0.4")
optional("org.aspectj:aspectjweaver:${aspectjVersion}") optional("org.aspectj:aspectjweaver:${aspectjVersion}")
optional("org.jetbrains.kotlin:kotlin-reflect") optional("org.jetbrains.kotlin:kotlin-reflect")
@ -94,7 +94,7 @@ dependencies {
testCompile("com.fasterxml.woodstox:woodstox-core:5.2.0") { testCompile("com.fasterxml.woodstox:woodstox-core:5.2.0") {
exclude group: "stax", module: "stax-api" exclude group: "stax", module: "stax-api"
} }
testCompile(project(":spring-core-coroutines")) testCompile(project(":kotlin-coroutines"))
} }
jar { jar {

View File

@ -12,7 +12,7 @@ dependencyManagement {
dependencies { dependencies {
compile(project(":spring-beans")) compile(project(":spring-beans"))
compile(project(":spring-core")) compile(project(":spring-core"))
compileOnly(project(":spring-core-coroutines")) compileOnly(project(":kotlin-coroutines"))
optional(project(":spring-context")) optional(project(":spring-context"))
optional(project(":spring-oxm")) optional(project(":spring-oxm"))
optional("io.projectreactor.netty:reactor-netty") optional("io.projectreactor.netty:reactor-netty")
@ -37,7 +37,7 @@ dependencies {
testCompile("org.jetbrains.kotlin:kotlin-stdlib") testCompile("org.jetbrains.kotlin:kotlin-stdlib")
testCompile("org.xmlunit:xmlunit-assertj:2.6.2") testCompile("org.xmlunit:xmlunit-assertj:2.6.2")
testCompile("org.xmlunit:xmlunit-matchers:2.6.2") testCompile("org.xmlunit:xmlunit-matchers:2.6.2")
testCompile(project(":spring-core-coroutines")) testCompile(project(":kotlin-coroutines"))
testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1") testRuntime("com.sun.xml.bind:jaxb-core:2.3.0.1")
testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1") testRuntime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
testRuntime("com.sun.activation:javax.activation:1.2.0") testRuntime("com.sun.activation:javax.activation:1.2.0")

View File

@ -15,7 +15,7 @@ dependencies {
compile(project(":spring-core")) compile(project(":spring-core"))
compile(project(":spring-web")) compile(project(":spring-web"))
compile("io.projectreactor:reactor-core") compile("io.projectreactor:reactor-core")
compileOnly(project(":spring-core-coroutines")) compileOnly(project(":kotlin-coroutines"))
optional(project(":spring-context")) optional(project(":spring-context"))
optional(project(":spring-context-support")) // for FreeMarker support optional(project(":spring-context-support")) // for FreeMarker support
optional("javax.servlet:javax.servlet-api:4.0.1") optional("javax.servlet:javax.servlet-api:4.0.1")
@ -57,7 +57,7 @@ dependencies {
testCompile("org.eclipse.jetty:jetty-servlet") testCompile("org.eclipse.jetty:jetty-servlet")
testCompile("org.eclipse.jetty:jetty-reactive-httpclient:1.0.3") testCompile("org.eclipse.jetty:jetty-reactive-httpclient:1.0.3")
testCompile("com.squareup.okhttp3:mockwebserver:3.14.2") testCompile("com.squareup.okhttp3:mockwebserver:3.14.2")
testCompile(project(":spring-core-coroutines")) testCompile(project(":kotlin-coroutines"))
testCompile("org.jetbrains.kotlin:kotlin-script-runtime") testCompile("org.jetbrains.kotlin:kotlin-script-runtime")
testRuntime("org.jetbrains.kotlin:kotlin-scripting-jsr223-embeddable") testRuntime("org.jetbrains.kotlin:kotlin-scripting-jsr223-embeddable")
testRuntime("org.jruby:jruby:9.2.7.0") testRuntime("org.jruby:jruby:9.2.7.0")