Skip to content

Commit

Permalink
GEODE-7185: Partial revert of a7e0b2e. (apache#4062)
Browse files Browse the repository at this point in the history
Fixes transitive API dependency on geode-common. Some classes in the
geode-core API extend classes in the geode-common module, thus making
geode-common API as well.
  • Loading branch information
jake-at-work authored Sep 16, 2019
1 parent 5e4b2ad commit 09d4d70
Show file tree
Hide file tree
Showing 29 changed files with 6 additions and 73 deletions.
1 change: 0 additions & 1 deletion extensions/geode-modules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ evaluationDependsOn(":geode-core")

dependencies {
compile(platform(project(':boms:geode-all-bom')))
implementation(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))
integrationTestCompile(project(':extensions:geode-modules-test')) {
Expand Down
1 change: 0 additions & 1 deletion geode-assembly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ dependencies {
integrationTestRuntime('io.swagger:swagger-annotations')


distributedTestImplementation(project(':geode-common'))
distributedTestImplementation(project(':geode-serialization'))
distributedTestCompile(project(':geode-core'))
distributedTestCompile(project(':geode-dunit')){
Expand Down
1 change: 0 additions & 1 deletion geode-assembly/geode-assembly-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ apply from: "${rootDir}/${scriptDir}/standard-subproject-configuration.gradle"
dependencies {
compile(platform(project(':boms:geode-all-bom')))
compileOnly(project(':extensions:geode-modules-test'))
compileOnly(project(':geode-common'))
compileOnly(project(':geode-core'))
compileOnly(project(':geode-pulse'))
compileOnly('com.fasterxml.jackson.core:jackson-databind')
Expand Down
1 change: 0 additions & 1 deletion geode-connectors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ task downloadJdbcJars(type:Copy) {

dependencies {
compile(platform(project(':boms:geode-all-bom')))
compile(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))
testCompile(project(':geode-junit')) {
Expand Down
5 changes: 0 additions & 5 deletions geode-connectors/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion geode-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ dependencies {
implementation('com.healthmarketscience.rmiio:rmiio')

//Geode-common has annotations and other pieces used geode-core
implementation(project(':geode-common'))
api(project(':geode-common'))
implementation(project(':geode-unsafe'))
implementation(project(':geode-serialization'))

Expand Down
10 changes: 5 additions & 5 deletions geode-core/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
<artifactId>shiro-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-management</artifactId>
Expand Down Expand Up @@ -255,11 +260,6 @@
<artifactId>rmiio</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-unsafe</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-cq/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"
dependencies {
compile(platform(project(':boms:geode-all-bom')))
compile(project(':geode-core'))
implementation(project(':geode-common'))
implementation(project(':geode-serialization'))
testCompile(project(':geode-junit')) {
exclude module: 'geode-core'
Expand Down
5 changes: 0 additions & 5 deletions geode-cq/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@
<artifactId>log4j-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-serialization</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-dunit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"

dependencies {
compile(platform(project(':boms:geode-all-bom')))
implementation(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))

Expand Down
5 changes: 0 additions & 5 deletions geode-dunit/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-serialization</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-junit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies {

compileOnly(project(':geode-core'))
compileOnly(project(':geode-serialization'))
compileOnly(project(':geode-common'))
compileOnly(project(':geode-unsafe'))

compile('com.fasterxml.jackson.core:jackson-annotations')
Expand Down
1 change: 0 additions & 1 deletion geode-lucene/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ dependencies {
}
implementation(project(':geode-serialization'))
compile(project(':geode-core'))
compile(project(':geode-common'))
compile('org.apache.lucene:lucene-analyzers-common')
compile('org.apache.lucene:lucene-queryparser') {
exclude module: 'lucene-sandbox'
Expand Down
5 changes: 0 additions & 5 deletions geode-lucene/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@
<artifactId>geode-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analyzers-common</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-memcached/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"

dependencies {
implementation(platform(project(':boms:geode-all-bom')))
implementation(project(':geode-common'))
implementation(project(':geode-core'))
implementation('org.apache.logging.log4j:log4j-api')
implementation('com.github.stephenc.findbugs:findbugs-annotations')
Expand Down
5 changes: 0 additions & 5 deletions geode-memcached/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-protobuf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"

dependencies {
compile(platform(project(':boms:geode-all-bom')))
compile(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))
compile(project(':geode-protobuf-messages'))
Expand Down
1 change: 0 additions & 1 deletion geode-protobuf/geode-protobuf-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apply from: "${rootDir}/${scriptDir}/standard-subproject-configuration.gradle"

dependencies {
compile(platform(project(':boms:geode-all-bom')))
compile(project(':geode-common'))
compile(project(':geode-core'))
compileOnly(project(':geode-protobuf'))

Expand Down
5 changes: 0 additions & 5 deletions geode-protobuf/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-rebalancer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"

dependencies {
compile(platform(project(':boms:geode-all-bom')))
compile(project(':geode-common'))
compile(project(':geode-core'))
implementation(project(':geode-serialization'))
integrationTestCompile(project(':geode-junit')) {
Expand Down
5 changes: 0 additions & 5 deletions geode-rebalancer/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-redis/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ apply from: "${project.projectDir}/../gradle/publish.gradle"

dependencies {
compile(platform(project(':boms:geode-all-bom')))
implementation(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))
compile('com.github.davidmoten:geo')
Expand Down
5 changes: 0 additions & 5 deletions geode-redis/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@
<artifactId>log4j-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-serialization</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-wan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ dependencies {
// See GEODE-6128 -- ignore xml-apis in linter to avoid changes with every run.
upgradeTestCompile('xml-apis:xml-apis:1.4.01')
}
implementation(project(':geode-common'))
implementation(project(':geode-serialization'))
compile(project(':geode-core'))

Expand Down
5 changes: 0 additions & 5 deletions geode-wan/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@
<artifactId>geode-core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-serialization</artifactId>
Expand Down
1 change: 0 additions & 1 deletion geode-web-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ dependencies {
compileOnly(platform(project(':boms:geode-all-bom')))

compileOnly(project(':geode-core'))
compileOnly(project(':geode-common'))
compileOnly(project(':geode-serialization'))

compileOnly('javax.servlet:javax.servlet-api')
Expand Down
1 change: 0 additions & 1 deletion geode-web-management/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ dependencies {
compile(platform(project(':boms:geode-all-bom'))) {
exclude module: "jackson-annotations"
}
compileOnly(project(':geode-common'))
compileOnly(project(':geode-serialization'))
compileOnly(project(':geode-core'))

Expand Down
1 change: 0 additions & 1 deletion geode-web/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dependencies {
//transitive dependencies from geode-web.war. Since geode-web.war is ony run within
//a container that has geode-core on the classpath, is prevents duplicating jars. geode-core
//in particular should not be duplicated in the war.
providedCompile(project(':geode-common'))
providedCompile(project(path: ':geode-core')) {
//spring-web is excluded from the providedCompile configuration to ensure
//that it is included as part of the war. spring-web must be loaded with the war's
Expand Down
5 changes: 0 additions & 5 deletions geode-web/src/test/resources/expected-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-common</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.geode</groupId>
<artifactId>geode-core</artifactId>
Expand Down

0 comments on commit 09d4d70

Please sign in to comment.