Skip to content

Commit

Permalink
split out gradle file for each subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
brharrington committed Jan 30, 2015
1 parent 88e0fe0 commit 5db9129
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 97 deletions.
91 changes: 0 additions & 91 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,94 +95,3 @@ subprojects {
}
}

project(':spectator-api') {

javadoc {
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
title "Spectator"
}

task(checkCompatibility, dependsOn: 'jar', type: JavaExec) {
doFirst {
main = 'com.googlecode.japi.checker.cli.Main'
classpath = files("$projectDir/../codequality/japi-checker-cli-0.2.0-SNAPSHOT.jar")
args = [
"$projectDir/../codequality/spectator-api-BASELINE.jar",
jar.archivePath.path
]
}
}

build {
it.dependsOn checkCompatibility
it.dependsOn licenseMain
it.dependsOn licenseTest
}
}

project(':spectator-nflx') {
dependencies {
compile project(':spectator-nflx-plugin')
compile 'com.netflix.governator:governator:1.2.20'
}
}

project(':spectator-nflx-plugin') {
dependencies {
compile project(':spectator-api')
compile project(':spectator-ext-gc')
compile project(':spectator-ext-jvm')
compile project(':spectator-ext-sandbox')
compile project(':spectator-reg-servo')
compile 'com.google.inject:guice:3.0'
compile 'com.jcraft:jzlib:1.1.3'
compile 'com.netflix.archaius:archaius-core:0.6.3'
compile 'com.netflix.eureka:eureka-client:1.1.146'
compile 'com.netflix.iep-shadow:iep-rxnetty:0.4.4'
compile 'com.netflix.iep-shadow:iep-rxnetty-contexts:0.4.4'
compile 'com.netflix.iep-shadow:iep-rxjava:1.0.2'
testCompile 'com.netflix.governator:governator:1.2.20'
}
}

project(':spectator-ext-gc') {
dependencies {
compile project(':spectator-api')
}
}

project(':spectator-ext-jvm') {
dependencies {
compile project(':spectator-api')
}
}

project(':spectator-ext-sandbox') {
dependencies {
compile project(':spectator-api')
}
}

project(':spectator-reg-servo') {
dependencies {
compile project(':spectator-api')
compile 'com.netflix.servo:servo-core:0.8.0'
jmh project(':spectator-api')
}
}

project(':spectator-reg-metrics2') {
dependencies {
compile project(':spectator-api')
compile 'com.yammer.metrics:metrics-core:2.2.0'
jmh project(':spectator-api')
}
}

project(':spectator-reg-metrics3') {
dependencies {
compile project(':spectator-api')
compile 'io.dropwizard.metrics:metrics-core:3.1.0'
jmh project(':spectator-api')
}
}
21 changes: 21 additions & 0 deletions spectator-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
javadoc {
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
title "Spectator"
}

task(checkCompatibility, dependsOn: 'jar', type: JavaExec) {
doFirst {
main = 'com.googlecode.japi.checker.cli.Main'
classpath = files("$projectDir/../codequality/japi-checker-cli-0.2.0-SNAPSHOT.jar")
args = [
"$projectDir/../codequality/spectator-api-BASELINE.jar",
jar.archivePath.path
]
}
}

build {
it.dependsOn checkCompatibility
it.dependsOn licenseMain
it.dependsOn licenseTest
}
3 changes: 3 additions & 0 deletions spectator-ext-gc/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
compile project(':spectator-api')
}
3 changes: 3 additions & 0 deletions spectator-ext-jvm/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
compile project(':spectator-api')
}
10 changes: 4 additions & 6 deletions spectator-ext-log4j2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
project(':spectator-ext-log4j2') {
dependencies {
compile project(':spectator-api')
compile 'org.apache.logging.log4j:log4j-api:2.1'
compile 'org.apache.logging.log4j:log4j-core:2.1'
}
dependencies {
compile project(':spectator-api')
compile 'org.apache.logging.log4j:log4j-api:2.1'
compile 'org.apache.logging.log4j:log4j-core:2.1'
}
3 changes: 3 additions & 0 deletions spectator-ext-sandbox/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
compile project(':spectator-api')
}
15 changes: 15 additions & 0 deletions spectator-nflx-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
dependencies {
compile project(':spectator-api')
compile project(':spectator-ext-gc')
compile project(':spectator-ext-jvm')
compile project(':spectator-ext-sandbox')
compile project(':spectator-reg-servo')
compile 'com.google.inject:guice:3.0'
compile 'com.jcraft:jzlib:1.1.3'
compile 'com.netflix.archaius:archaius-core:0.6.3'
compile 'com.netflix.eureka:eureka-client:1.1.146'
compile 'com.netflix.iep-shadow:iep-rxnetty:0.4.4'
compile 'com.netflix.iep-shadow:iep-rxnetty-contexts:0.4.4'
compile 'com.netflix.iep-shadow:iep-rxjava:1.0.2'
testCompile 'com.netflix.governator:governator:1.2.20'
}
4 changes: 4 additions & 0 deletions spectator-nflx/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dependencies {
compile project(':spectator-nflx-plugin')
compile 'com.netflix.governator:governator:1.2.20'
}
5 changes: 5 additions & 0 deletions spectator-reg-metrics2/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
compile project(':spectator-api')
compile 'com.yammer.metrics:metrics-core:2.2.0'
jmh project(':spectator-api')
}
5 changes: 5 additions & 0 deletions spectator-reg-metrics3/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
compile project(':spectator-api')
compile 'io.dropwizard.metrics:metrics-core:3.1.0'
jmh project(':spectator-api')
}
5 changes: 5 additions & 0 deletions spectator-reg-servo/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencies {
compile project(':spectator-api')
compile 'com.netflix.servo:servo-core:0.8.0'
jmh project(':spectator-api')
}

0 comments on commit 5db9129

Please sign in to comment.