Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 72b5dce

Browse files
authored
Merge pull request #239 from google/issue/236.messy.transitive.dependencies
Remove all dependencies from the FreeBuilder POM
2 parents c85fd5c + 711cd50 commit 72b5dce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,11 @@ if (System.env.TRAVIS_TAG != null && !System.env.TRAVIS_TAG.isEmpty()) {
529529
artifacts {
530530
archives shadowJar
531531
}
532+
configurations.archives.artifacts.with { archives ->
533+
// Don't publish the unshaded jar
534+
def unshadedJar = archives.findAll { it.classifier == 'only' }
535+
archives.removeAll(unshadedJar)
536+
}
532537

533538
modifyPom {
534539
project {
@@ -559,6 +564,9 @@ modifyPom {
559564
timezone 'Europe/London'
560565
}
561566
}
567+
568+
// We shade all our dependencies
569+
dependencies.clear()
562570
}
563571
}
564572

0 commit comments

Comments
 (0)