File tree 1 file changed +6
-1
lines changed
astyanax-cassandra-all-shaded
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ plugins {
13
13
print " Shading cassandra-all for cassandraVersion=${ cassandraVersion} \n "
14
14
15
15
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 " ) {
17
18
// Exclude all those heavy transitive dependencies because Astyanax doesn't need them
18
19
transitive = false
19
20
}
@@ -23,6 +24,10 @@ shadowJar {
23
24
// Don't append default "-all" to end of shaded jar name.
24
25
classifier = ' '
25
26
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
+
26
31
// Add only the shaded cassandra-all classes
27
32
dependencies {
28
33
include(
You can’t perform that action at this time.
0 commit comments