Skip to content

Commit

Permalink
Merge pull request #645 from chapj2001/dependency-update
Browse files Browse the repository at this point in the history
Keep cassandra-all compile-time dependency out of the shaded pom.
  • Loading branch information
chapj2001 authored Oct 4, 2018
2 parents 677b14a + 4949de4 commit bcc3fd2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion astyanax-cassandra-all-shaded/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ plugins {
print "Shading cassandra-all for cassandraVersion=${cassandraVersion}\n"

dependencies {
compile ("org.apache.cassandra:cassandra-all:$cassandraVersion") {
// Add cassandra-all to the shadow configuration so it doesn't get included in the pom
shadow ("org.apache.cassandra:cassandra-all:$cassandraVersion") {
// Exclude all those heavy transitive dependencies because Astyanax doesn't need them
transitive = false
}
Expand All @@ -23,6 +24,10 @@ shadowJar {
// Don't append default "-all" to end of shaded jar name.
classifier = ''

// Add shadow configuration to package all the cassandra-all classes into the shaded jar
// (plugin default is compile configuration, but that adds cassandra-all to the pom)
configurations = [project.configurations.shadow]

// Add only the shaded cassandra-all classes
dependencies {
include(
Expand Down

0 comments on commit bcc3fd2

Please sign in to comment.