@@ -65,9 +65,6 @@ configurations {
65
65
}
66
66
67
67
dependencies {
68
- compileOnly project(' :geode-core' )
69
- testCompile project(' :geode-core' )
70
-
71
68
archives project(' :geode-common' )
72
69
archives project(' :geode-json' )
73
70
archives project(' :geode-core' )
@@ -82,74 +79,67 @@ dependencies {
82
79
archives project(' :geode-cq' )
83
80
archives project(' :geode-rebalancer' )
84
81
85
- testCompile project(' :geode-junit' )
86
- testCompile project(' :geode-pulse' )
87
- testCompile files(project(' :geode-core' ). sourceSets. test. output)
88
- testCompile files(project(' :geode-pulse' ). sourceSets. test. output)
89
- testCompile (' org.springframework:spring-web:' + project. ' springframework.version' ) {
90
- exclude module : ' aopalliance'
91
- exclude module : ' spring-aop'
92
- }
93
-
94
- testCompile ' org.apache.httpcomponents:httpclient:' + project. ' httpclient.version'
95
- testCompile ' org.apache.httpcomponents:httpcore:' + project. ' httpcore.version'
96
- testCompile ' com.google.guava:guava:' + project. ' guava.version'
97
- testCompile ' org.apache.commons:commons-exec:' + project. ' commons-exec.version'
98
82
99
- testCompile group : ' org.codehaus.cargo' , name : ' cargo-core-uberjar' , version : ' 1.6.3'
100
-
101
- testCompile (project(' :extensions/geode-modules' )) {
102
- // Remove everything related to Tomcat
103
- exclude group : ' org.apache.tomcat'
104
- }
105
- testCompile (project(' :extensions/geode-modules-session-internal' )) {
106
- // Remove everything related to Tomcat
107
- exclude group : ' org.apache.tomcat'
108
- }
83
+ testCompile project(' :geode-core' )
84
+ testCompile project(' :geode-junit' )
109
85
110
- testCompile project(' :extensions/session-testing-war' )
111
86
112
- testCompile ' org.seleniumhq.selenium:selenium-api:' + project. ' selenium.version'
113
- testCompile ' org.seleniumhq.selenium:selenium-chrome-driver:' + project. ' selenium.version'
114
- testCompile ' org.seleniumhq.selenium:selenium-support:' + project. ' selenium.version'
87
+ integrationTestCompile project(' :geode-core' )
88
+ integrationTestCompile project(" :geode-junit" )
89
+ integrationTestCompile project(" :geode-dunit" )
90
+ integrationTestCompile project(" :geode-pulse" )
91
+ integrationTestCompile ' org.apache.httpcomponents:httpclient:' + project. ' httpclient.version'
115
92
116
- testRuntime files(" ${ System.getProperty('java.home')} /../lib/tools.jar" )
117
- testRuntime files(" $buildDir /install/${ distributions.main.baseName} /lib/geode-dependencies.jar" )
118
93
94
+ distributedTestCompile project(' :geode-core' )
95
+ distributedTestCompile project(' :extensions/session-testing-war' )
96
+ distributedTestCompile group : ' org.codehaus.cargo' , name : ' cargo-core-uberjar' , version : ' 1.6.3'
97
+ distributedTestCompile ' org.apache.httpcomponents:httpclient:' + project. ' httpclient.version'
98
+ // TODO refactor out common test framework
99
+ distributedTestCompile sourceSets. integrationTest. output
119
100
120
- gfshDependencies (' org.springframework:spring-web:' + project. ' springframework.version' ){
121
- exclude module : ' spring-core'
122
- exclude module : ' commons-logging'
101
+ distributedTestRuntime (project(' :extensions/geode-modules-session-internal' )) {
102
+ exclude group : ' org.apache.tomcat'
123
103
}
124
104
125
- testCompile files(project(' :geode-old-versions' ). sourceSets. main. output)
126
105
127
- integrationTestCompile project(" :geode-dunit" )
106
+ acceptanceTestCompile project(' :geode-core' )
107
+ acceptanceTestCompile project(" :geode-dunit" )
128
108
129
- distributedTestCompile project(" :geode-dunit" )
130
109
131
- acceptanceTestCompile project(" :geode-dunit" )
110
+ uiTestCompile project(' :geode-core' )
111
+ uiTestCompile project(" :geode-dunit" )
112
+ uiTestCompile project(" :geode-pulse" )
113
+ uiTestCompile ' org.seleniumhq.selenium:selenium-api:' + project. ' selenium.version'
114
+ uiTestCompile ' org.seleniumhq.selenium:selenium-remote-driver:' + project. ' selenium.version'
115
+ uiTestCompile ' org.seleniumhq.selenium:selenium-support:' + project. ' selenium.version'
132
116
// TODO refactor out common test framework
133
- upgradeTestCompile sourceSets. distributedTest. output
117
+ uiTestCompile sourceSets. integrationTest. output
118
+ uiTestCompile project(" :geode-pulse" ). sourceSets. uiTest. output
134
119
135
- uiTestCompile project(" :geode-dunit" )
120
+ uiTestRuntime project(" :geode-core" )
121
+ uiTestRuntime ' org.seleniumhq.selenium:selenium-chrome-driver:' + project. ' selenium.version'
136
122
123
+
124
+ upgradeTestCompile project(' :geode-core' )
137
125
upgradeTestCompile project(" :geode-dunit" )
138
126
// TODO refactor out common test framework
139
127
upgradeTestCompile sourceSets. distributedTest. output
140
- }
128
+ upgradeTestCompile sourceSets . test . output
141
129
142
- sourceSets {
143
- }
130
+ upgradeTestRuntime group : ' org.codehaus.cargo' , name : ' cargo-core-uberjar' , version : ' 1.6.3'
131
+ upgradeTestRuntime ' org.apache.httpcomponents:httpclient:' + project. ' httpclient.version'
132
+ upgradeTestRuntime project(' :extensions/session-testing-war' )
144
133
145
- test {
146
- // test from the actual classpath not the gradle classpath
147
- dependsOn installDist
148
- // @TODO: this doesn't seem to be working need to get basename first.
149
- classpath + = files " $b uildDir /install/ ${ distributions.main.baseName } /lib/geode-dependencies.jar "
134
+
135
+ gfshDependencies ( ' org.springframework:spring-web: ' + project . ' springframework.version ' ){
136
+ exclude module : ' spring-core '
137
+ exclude module : ' commons-logging '
138
+ }
150
139
}
151
140
152
141
tasks. withType(Test ){
142
+ dependsOn installDist
153
143
environment ' GEODE_HOME' , " $buildDir /install/${ distributions.main.baseName} "
154
144
}
155
145
0 commit comments