Browse Source

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
pull/23506/head
Brian Clozel 6 years ago
parent
commit
e45a3f4738
  1. 2
      .gitignore
  2. 4
      build.gradle
  3. 0
      framework-bom/framework-bom.gradle
  4. 0
      framework-bom/spring-framework-bom.txt
  5. 5
      settings.gradle
  6. 2
      spring-core/kotlin-coroutines/kotlin-coroutines.gradle
  7. 0
      spring-core/kotlin-coroutines/src/main/kotlin/org/springframework/core/CoroutinesUtils.kt
  8. 6
      spring-core/spring-core.gradle
  9. 4
      spring-messaging/spring-messaging.gradle
  10. 4
      spring-webflux/spring-webflux.gradle

2
.gitignore vendored

@ -21,6 +21,8 @@ classes/ @@ -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/

4
build.gradle

@ -17,9 +17,7 @@ plugins { @@ -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"

0
spring-framework-bom/spring-framework-bom.gradle → framework-bom/framework-bom.gradle

0
spring-framework-bom/spring-framework-bom.txt → framework-bom/spring-framework-bom.txt

5
settings.gradle

@ -5,7 +5,8 @@ include "spring-context" @@ -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"
@ -20,7 +21,7 @@ include "spring-web" @@ -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"

2
spring-core-coroutines/spring-core-coroutines.gradle → spring-core/kotlin-coroutines/kotlin-coroutines.gradle

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

0
spring-core-coroutines/src/main/kotlin/org/springframework/core/CoroutinesUtils.kt → spring-core/kotlin-coroutines/src/main/kotlin/org/springframework/core/CoroutinesUtils.kt

6
spring-core/spring-core.gradle

@ -70,12 +70,12 @@ dependencies { @@ -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")
@ -94,7 +94,7 @@ dependencies { @@ -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 {

4
spring-messaging/spring-messaging.gradle

@ -12,7 +12,7 @@ dependencyManagement { @@ -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")
@ -37,7 +37,7 @@ dependencies { @@ -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")

4
spring-webflux/spring-webflux.gradle

@ -15,7 +15,7 @@ dependencies { @@ -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")
@ -57,7 +57,7 @@ dependencies { @@ -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")

Loading…
Cancel
Save