Skip to content

Commit

Permalink
Adding alpn_boot configuration to the parent build file.
Browse files Browse the repository at this point in the history
This allows all modules access to the alpnboot jar without having to copy&paste the configuration.
  • Loading branch information
nmittler committed May 22, 2015
1 parent 0d48087 commit 74cfe6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 0 additions & 6 deletions benchmarks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jmh {
jvmArgs = "-server -Xms768m -Xmx768m -dsa -da -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat"
}

configurations {
alpnboot
}

dependencies {
compile project(':grpc-core'),
project(':grpc-netty'),
Expand All @@ -42,8 +38,6 @@ dependencies {
libraries.hdrhistogram,
libraries.netty_tcnative,
libraries.netty_transport_native_epoll

alpnboot alpnboot_package_name
}

configureProtoCompilation()
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,17 @@ subprojects {
alpnboot_package_name = 'org.mortbay.jetty.alpn:alpn-boot:' + alpnboot_version
}

// Define a separate configuration for managing the dependency on Jetty alpnboot jar.
configurations {
alpnboot
}

dependencies {
testCompile libraries.junit,
libraries.mockito

// Make the Jetty alpnboot jar available to submodules via the alpnboot configuration.
alpnboot alpnboot_package_name
}

signing {
Expand Down
6 changes: 0 additions & 6 deletions interop-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ buildscript {
}
}

configurations {
alpnboot
}

dependencies {
compile project(':grpc-core'),
project(':grpc-netty'),
Expand All @@ -26,8 +22,6 @@ dependencies {
project(':grpc-testing'),
libraries.junit,
libraries.mockito

alpnboot alpnboot_package_name
}

test {
Expand Down

0 comments on commit 74cfe6c

Please sign in to comment.