Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep cassandra-all compile-time dependency out of the shaded pom. #645

Merged
merged 1 commit into from
Oct 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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