Skip to content

Commit

Permalink
Move integration tests to dedicated module
Browse files Browse the repository at this point in the history
This commit moves the dependency management and test source files
related to integration tests to a dedicated module.
This allows us to focus the root project on building the Spring
Framework.

See spring-projectsgh-23282
  • Loading branch information
bclozel committed Aug 19, 2019
1 parent 6008c61 commit 998f6af
Show file tree
Hide file tree
Showing 41 changed files with 25 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ classes/
/build
buildSrc/build
/spring-*/build
/integration-tests/build
/src/asciidoc/build
target/

Expand Down
21 changes: 3 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ configure(allprojects) { project ->
] as String[]
}

configure(subprojects.findAll { (it.name != "spring-core-coroutines") } ) { subproject ->
configure(subprojects.findAll { (it.name != "spring-core-coroutines"
&& it.name != "spring-integration-tests") } ) { subproject ->
apply from: "${gradleScriptDir}/publish-maven.gradle"

jar {
Expand Down Expand Up @@ -260,23 +261,7 @@ configure(rootProject) {
// Don't publish the default jar for the root project
configurations.archives.artifacts.clear()

dependencies { // for integration tests
testCompile(project(":spring-aop"))
testCompile(project(":spring-beans"))
testCompile(project(":spring-context"))
testCompile(project(":spring-core"))
testCompile(project(":spring-expression"))
testCompile(project(":spring-jdbc"))
testCompile(project(":spring-orm"))
testCompile(project(":spring-test"))
testCompile(project(":spring-tx"))
testCompile(project(":spring-web"))
testCompile("javax.inject:javax.inject:1")
testCompile("javax.resource:javax.resource-api:1.7.1")
testCompile("javax.servlet:javax.servlet-api:3.1.0")
testCompile("org.aspectj:aspectjweaver:${aspectjVersion}")
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
testCompile("org.hibernate:hibernate-core:5.1.17.Final")
dependencies {
asciidoctor("io.spring.asciidoctor:spring-asciidoctor-extensions:0.1.3.RELEASE")
}

Expand Down
20 changes: 20 additions & 0 deletions integration-tests/integration-tests.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
description = "Spring Integration Tests"

dependencies {
testCompile(project(":spring-aop"))
testCompile(project(":spring-beans"))
testCompile(project(":spring-context"))
testCompile(project(":spring-core"))
testCompile(project(":spring-expression"))
testCompile(project(":spring-jdbc"))
testCompile(project(":spring-orm"))
testCompile(project(":spring-test"))
testCompile(project(":spring-tx"))
testCompile(project(":spring-web"))
testCompile("javax.inject:javax.inject:1")
testCompile("javax.resource:javax.resource-api:1.7.1")
testCompile("javax.servlet:javax.servlet-api:4.0.1")
testCompile("org.aspectj:aspectjweaver:${aspectjVersion}")
testCompile("org.hsqldb:hsqldb:${hsqldbVersion}")
testCompile("org.hibernate:hibernate-core:5.1.17.Final")
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include "spring-webmvc"
include "spring-webflux"
include "spring-websocket"
include "spring-framework-bom"
include "integration-tests"

rootProject.name = "spring"
rootProject.children.each {project ->
Expand Down

0 comments on commit 998f6af

Please sign in to comment.