Skip to content

Commit bcc3fd2

Browse files
authored
Merge pull request #645 from chapj2001/dependency-update
Keep cassandra-all compile-time dependency out of the shaded pom.
2 parents 677b14a + 4949de4 commit bcc3fd2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

astyanax-cassandra-all-shaded/build.gradle

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ plugins {
1313
print "Shading cassandra-all for cassandraVersion=${cassandraVersion}\n"
1414

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

27+
// Add shadow configuration to package all the cassandra-all classes into the shaded jar
28+
// (plugin default is compile configuration, but that adds cassandra-all to the pom)
29+
configurations = [project.configurations.shadow]
30+
2631
// Add only the shaded cassandra-all classes
2732
dependencies {
2833
include(

0 commit comments

Comments
 (0)