Skip to content

Commit

Permalink
GEODE-6105: convert geode-old-versions to xyzTestRuntime dependency (a…
Browse files Browse the repository at this point in the history
…pache#2917)

Old versions are only used by tests, not any production runtime. Do not
publish to Maven that we need it for all runtime. Mark the modules that
need old-versions for testing appropriately.

Authored-by: Robert Houghton <[email protected]>
  • Loading branch information
robbadler authored and PurelyApplied committed Nov 29, 2018
1 parent 615e4ed commit 4bc1e65
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 10 deletions.
7 changes: 6 additions & 1 deletion geode-assembly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ dependencies {
testCompile(project(':geode-junit')) {
exclude module: 'geode-core'
}
testRuntime(project(':geode-old-versions'))


acceptanceTestRuntime(project(':geode-old-versions'))


integrationTestCompile(project(':geode-core'))
Expand Down Expand Up @@ -203,9 +207,10 @@ dependencies {
}
upgradeTestCompile(project(':geode-assembly:geode-assembly-test'))

upgradeTestRuntime(project(':geode-old-versions'))
upgradeTestRuntime(project(':extensions:session-testing-war'))
upgradeTestRuntime(group: 'org.codehaus.cargo', name: 'cargo-core-uberjar', version: '1.6.3')
upgradeTestRuntime('org.apache.httpcomponents:httpclient:' + project.'httpclient.version')
upgradeTestRuntime(project(':extensions:session-testing-war'))
upgradeTestRuntime files({ downloadWebServers } )

//Web servers used for session module testing
Expand Down
4 changes: 4 additions & 0 deletions geode-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,17 @@ dependencies {
distributedTestCompile('pl.pragmatists:JUnitParams:' + project.'JUnitParams.version')
distributedTestCompile('com.jayway.jsonpath:json-path-assert:' + project.'json-path-assert.version')

distributedTestRuntime(project(':geode-old-versions'))
distributedTestRuntime('org.apache.derby:derby:' + project.'derby.version')


upgradeTestCompile(project(':geode-dunit')) {
exclude module: 'geode-core'
}

upgradeTestRuntime(project(':geode-old-versions'))


performanceTestCompile(project(':geode-junit')) {
exclude module: 'geode-core'
}
Expand Down
2 changes: 2 additions & 0 deletions geode-cq/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ dependencies {
upgradeTestCompile('junit:junit:' + project.'junit.version')
upgradeTestCompile('org.awaitility:awaitility:' + project.'awaitility.version')
upgradeTestCompile('org.mockito:mockito-core:' + project.'mockito-core.version')

upgradeTestRuntime(project(':geode-old-versions'))
}
3 changes: 3 additions & 0 deletions geode-dunit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dependencies {
compile('junit:junit:' + project.'junit.version') {
exclude module: 'hamcrest-core'
}


distributedTestRuntime(project(':geode-old-versions'))
}

distributedTest {
Expand Down
2 changes: 1 addition & 1 deletion geode-junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {

testCompile('pl.pragmatists:JUnitParams:' + project.'JUnitParams.version')

runtimeOnly(project(':geode-old-versions'))
testRuntime(project(':geode-old-versions'))
}

test {
Expand Down
6 changes: 0 additions & 6 deletions geode-junit/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,5 @@
<version>1.60</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-old-versions</artifactId>
<version>1.9.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
2 changes: 2 additions & 0 deletions geode-lucene/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ dependencies {
exclude module: 'geode-core'
}

upgradeTestRuntime(project(':geode-old-versions'))


performanceTestCompile(project(':geode-junit')) {
exclude module: 'geode-core'
Expand Down
1 change: 1 addition & 0 deletions geode-wan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ dependencies {
upgradeTestCompile(project(':geode-dunit')) {
exclude module: 'geode-core'
}
upgradeTestRuntime(project(':geode-old-versions'))
distributedTestCompile('pl.pragmatists:JUnitParams:' + project.'JUnitParams.version')
}
3 changes: 1 addition & 2 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ subprojects {
}
}
}

}
check.dependsOn('checkPom')

Expand All @@ -200,9 +199,9 @@ subprojects {
from actualPomFile
into expectedPomDir
rename '.*.xml', "expected-pom.xml"

}
}
checkPom.mustRunAfter(updateExpectedPom)
} // subprojects


Expand Down

0 comments on commit 4bc1e65

Please sign in to comment.