Skip to content

Commit

Permalink
Rename non-Framework project modules
Browse files Browse the repository at this point in the history
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 spring-projectsgh-23282
  • Loading branch information
bclozel committed Aug 21, 2019
1 parent 6ce5f9d commit e45a3f4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ classes/
/build
buildSrc/build
/spring-*/build
/spring-core/kotlin-coroutines/build
/framework-bom/build
/integration-tests/build
/src/asciidoc/build
target/
Expand Down
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ plugins {
}

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

aspectjVersion = "1.9.4"
coroutinesVersion = "1.3.0-RC2"
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ include "spring-context"
include "spring-context-support"
include "spring-context-indexer"
include "spring-core"
include "spring-core-coroutines"
include "kotlin-coroutines"
project(':kotlin-coroutines').projectDir = file('spring-core/kotlin-coroutines')
include "spring-expression"
include "spring-instrument"
include "spring-jcl"
Expand All @@ -20,7 +21,7 @@ include "spring-web"
include "spring-webmvc"
include "spring-webflux"
include "spring-websocket"
include "spring-framework-bom"
include "framework-bom"
include "integration-tests"

rootProject.name = "spring"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
}

// Avoid publishing coroutines JAR to the artifact repository
if (project.hasProperty("artifactoryPublish")) {
if (pluginManager.hasPlugin("artifactoryPublish")) {
artifactoryPublish.skip = true
}

Expand Down
6 changes: 3 additions & 3 deletions spring-core/spring-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ dependencies {
cglib("cglib:cglib:${cglibVersion}@jar")
objenesis("org.objenesis:objenesis:${objenesisVersion}@jar")
jarjar("org.pantsbuild:jarjar:1.7.2")
coroutines(project(":spring-core-coroutines"))
coroutines(project(":kotlin-coroutines"))

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

jar {
Expand Down
4 changes: 2 additions & 2 deletions spring-messaging/spring-messaging.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencyManagement {
dependencies {
compile(project(":spring-beans"))
compile(project(":spring-core"))
compileOnly(project(":spring-core-coroutines"))
compileOnly(project(":kotlin-coroutines"))
optional(project(":spring-context"))
optional(project(":spring-oxm"))
optional("io.projectreactor.netty:reactor-netty")
Expand All @@ -37,7 +37,7 @@ dependencies {
testCompile("org.jetbrains.kotlin:kotlin-stdlib")
testCompile("org.xmlunit:xmlunit-assertj: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-impl:2.3.0.1")
testRuntime("com.sun.activation:javax.activation:1.2.0")
Expand Down
4 changes: 2 additions & 2 deletions spring-webflux/spring-webflux.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
compile(project(":spring-core"))
compile(project(":spring-web"))
compile("io.projectreactor:reactor-core")
compileOnly(project(":spring-core-coroutines"))
compileOnly(project(":kotlin-coroutines"))
optional(project(":spring-context"))
optional(project(":spring-context-support")) // for FreeMarker support
optional("javax.servlet:javax.servlet-api:4.0.1")
Expand Down Expand Up @@ -57,7 +57,7 @@ dependencies {
testCompile("org.eclipse.jetty:jetty-servlet")
testCompile("org.eclipse.jetty:jetty-reactive-httpclient:1.0.3")
testCompile("com.squareup.okhttp3:mockwebserver:3.14.2")
testCompile(project(":spring-core-coroutines"))
testCompile(project(":kotlin-coroutines"))
testCompile("org.jetbrains.kotlin:kotlin-script-runtime")
testRuntime("org.jetbrains.kotlin:kotlin-scripting-jsr223-embeddable")
testRuntime("org.jruby:jruby:9.2.7.0")
Expand Down

0 comments on commit e45a3f4

Please sign in to comment.