Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit ee13af8

Browse files
authored
GEODE-8327: buildSrc depends directly on guava. Declare it. Misc other build fixups (apache#5339)
1 parent 54a21c5 commit ee13af8

File tree

12 files changed

+48
-48
lines changed

12 files changed

+48
-48
lines changed

buildSrc/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434
implementation(gradleApi())
3535
implementation('org.apache.commons:commons-lang3:3.3.2')
3636
implementation('org.apache.maven:maven-artifact:3.3.3')
37+
implementation('com.google.guava:guava:28.2-jre')
3738
implementation('com.github.docker-java:docker-java:3.0.14')
3839
implementation('me.champeau.gradle:japicmp-gradle-plugin:0.2.9')
3940

extensions/geode-modules-assembly/build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,7 @@ tasks.register('distTcServer30', Zip) {
239239
task dist(type: Task, dependsOn: ['distTcServer', 'distTcServer30', 'distTomcat', 'distAppServer'])
240240

241241
build.dependsOn dist
242+
243+
sonarqube {
244+
skipProject = true
245+
}

extensions/geode-modules-session/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ jar {
7070
baseName = 'geode-modules-session'
7171
}
7272

73+
sonarqube {
74+
skipProject = true
75+
}

extensions/geode-modules-tomcat7/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ eclipse.classpath.file {
7272
}
7373
}
7474

75+
sonarqube {
76+
skipProject = true
77+
}

extensions/geode-modules/build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ dependencies {
7373
}
7474
}
7575

76+
sonarqube {
77+
skipProject = true
78+
}

geode-gfsh/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ dependencies {
7575
exclude module: 'spring-context-support'
7676
exclude module: 'spring-core'
7777
}
78-
}
78+
}

geode-membership/build.gradle

+14-9
Original file line numberDiff line numberDiff line change
@@ -24,47 +24,52 @@ dependencies {
2424

2525
// Geode-common has annotations and other pieces used by geode-logging
2626
api(project(':geode-common'))
27+
2728
implementation(project(':geode-logging'))
29+
implementation(project(':geode-serialization'))
30+
implementation(project(':geode-tcp-server'))
31+
2832
implementation('org.apache.logging.log4j:log4j-api')
2933
implementation('org.jgroups:jgroups')
3034
implementation('org.apache.commons:commons-lang3')
3135
implementation('it.unimi.dsi:fastutil')
3236
implementation('com.github.stephenc.findbugs:findbugs-annotations')
3337
//Commons validator is used to validate inet addresses in membership
3438
implementation('commons-validator:commons-validator')
35-
36-
implementation(project(':geode-serialization'))
37-
implementation(project(':geode-tcp-server'))
3839
//Jgroups is a core component of our membership system.
3940
implementation('org.jgroups:jgroups')
4041

42+
4143
testImplementation(project(':geode-junit'))
4244
testImplementation(project(':geode-concurrency-test'))
4345

4446
testImplementation('org.mockito:mockito-core')
4547
testImplementation('junit:junit')
4648
testImplementation('org.assertj:assertj-core')
49+
testImplementation('com.tngtech.archunit:archunit-junit4')
4750

4851
testRuntime(project(path: ':geode-old-versions', configuration: 'testOutput'))
4952

53+
5054
integrationTestImplementation(project(':geode-junit'))
55+
integrationTestImplementation('com.tngtech.archunit:archunit-junit4')
5156
integrationTestImplementation('pl.pragmatists:JUnitParams')
57+
58+
integrationTestRuntime('org.apache.logging.log4j:log4j-core')
59+
60+
5261
distributedTestImplementation(project(':geode-junit'))
5362
distributedTestImplementation(project(':geode-dunit'))
54-
integrationTestRuntime('org.apache.logging.log4j:log4j-core')
5563
distributedTestImplementation('pl.pragmatists:JUnitParams')
64+
5665
distributedTestRuntimeOnly(project(path: ':geode-old-versions', configuration: 'testOutput'))
57-
upgradeTestRuntimeOnly(project(path: ':geode-old-versions', configuration: 'testOutput'))
5866

59-
testImplementation('com.tngtech.archunit:archunit-junit4')
6067

61-
integrationTestImplementation('com.tngtech.archunit:archunit-junit4')
62-
68+
upgradeTestRuntimeOnly(project(path: ':geode-old-versions', configuration: 'testOutput'))
6369
}
6470

6571
distributedTest {
6672
// Some tests have inner tests that should be ignored
6773
exclude "**/*\$*.class"
6874
}
6975

70-

gradle/java.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ javadoc {
112112

113113
classpath += configurations.compileOnly
114114
}
115+
116+

gradle/publish-java.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,4 @@ gradle.taskGraph.whenReady({ graph ->
7373
}
7474
})
7575

76+

gradle/sonar.gradle

-24
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,3 @@ sonarqube {
2929
property "sonar.projectDescription", "Apache Geode"
3030
}
3131
}
32-
33-
project("extensions:geode-modules") {
34-
sonarqube {
35-
skipProject = true
36-
}
37-
}
38-
39-
project("extensions:geode-modules-assembly") {
40-
sonarqube {
41-
skipProject = true
42-
}
43-
}
44-
45-
project("extensions:geode-modules-session") {
46-
sonarqube {
47-
skipProject = true
48-
}
49-
}
50-
51-
project("extensions:geode-modules-tomcat7") {
52-
sonarqube {
53-
skipProject = true
54-
}
55-
}

gradle/standard-subproject-configuration.gradle

+1-14
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,4 @@ def thisProjectScoped = project
3333
}
3434
}
3535

36-
thisProjectScoped.tasks.named('assemble').configure {
37-
// This is a semi-lazy hook so that our test sources are compiled most of the time.
38-
dependsOn(
39-
[
40-
thisProjectScoped.tasks.named('compileTestJava'),
41-
thisProjectScoped.tasks.named('compileIntegrationTestJava'),
42-
thisProjectScoped.tasks.named('compileDistributedTestJava'),
43-
thisProjectScoped.tasks.named('compileAcceptanceTestJava'),
44-
thisProjectScoped.tasks.named('compileUiTestJava'),
45-
thisProjectScoped.tasks.named('compilePerformanceTestJava'),
46-
thisProjectScoped.tasks.named('compileUpgradeTestJava'),
47-
]
48-
)
49-
}
36+

gradle/test.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -265,3 +265,18 @@ tasks.withType(Test).plus([build, check]).each {
265265
it.finalizedBy rootProject.tasks.combineReports
266266
rootProject.tasks.combineReports.mustRunAfter it
267267
}
268+
269+
project.tasks.named('assemble').configure {
270+
// This is a semi-lazy hook so that our test sources are compiled most of the time.
271+
dependsOn(
272+
[
273+
project.tasks.named('compileTestJava'),
274+
project.tasks.named('compileIntegrationTestJava'),
275+
project.tasks.named('compileDistributedTestJava'),
276+
project.tasks.named('compileAcceptanceTestJava'),
277+
project.tasks.named('compileUiTestJava'),
278+
project.tasks.named('compilePerformanceTestJava'),
279+
project.tasks.named('compileUpgradeTestJava'),
280+
]
281+
)
282+
}

0 commit comments

Comments
 (0)