Skip to content

Commit

Permalink
Only apply the java plugin to subprojects (apache#32)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
upthewaterspout authored Oct 26, 2017
1 parent 1ab4c24 commit f2ae1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
25 changes: 1 addition & 24 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ task installGeode(type: Copy) {
into buildDir
}

allprojects {
subprojects {
apply plugin:'java'


dependencies {
compile "org.apache.geode:geode-core:$geodeVersion"

Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion gradle/ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f2ae1bd

Please sign in to comment.