From f2ae1bd768a9114eba95028e630c1461806ade3f Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Thu, 26 Oct 2017 14:35:15 -0700 Subject: [PATCH] Only apply the java plugin to subprojects (#32) Now that we have no shared test code for the examples, we don't really need the top level project to be a java project. --- build.gradle | 25 +------------------------ gradle/ide.gradle | 2 +- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/build.gradle b/build.gradle index f2c980e..1ba468d 100644 --- a/build.gradle +++ b/build.gradle @@ -50,10 +50,9 @@ task installGeode(type: Copy) { into buildDir } -allprojects { +subprojects { apply plugin:'java' - dependencies { compile "org.apache.geode:geode-core:$geodeVersion" @@ -62,30 +61,8 @@ allprojects { testCompile "org.mockito:mockito-core:$mockitocoreVersion" testCompile "com.github.stefanbirkner:system-rules:$systemrulesVersion" testCompile "org.assertj:assertj-core:$assertjVersion" - } -} - -configurations { - testArchives -} - -dependencies { - testArchives sourceSets.test.output -} - -subprojects { - dependencies { compile "org.apache.logging.log4j:log4j-core:$log4jVersion" runtime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion" - testCompile project(path: ':', configuration: 'testArchives') - } - - jar { - archiveName "${baseName}.${extension}" - } - - jar { - archiveName "${baseName}.${extension}" } jar { diff --git a/gradle/ide.gradle b/gradle/ide.gradle index 4d3d808..6758353 100644 --- a/gradle/ide.gradle +++ b/gradle/ide.gradle @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -allprojects { +subprojects { apply plugin: 'eclipse' eclipse { classpath {