Skip to content

Commit

Permalink
Remove checker-qual files from shaded dataflow jar
Browse files Browse the repository at this point in the history
  • Loading branch information
smillst authored Oct 2, 2024
1 parent 642a853 commit fe16b7f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dataflow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def createDataflowShaded(shadedPkgName) {
base {
archivesName = "dataflow-${shadedPkgName}"
}
dependencies {
exclude(project(':checker-qual'))
}
// Without this line, the Maven artifact will have the classifier "all".
archiveClassifier.set('')

Expand Down Expand Up @@ -208,6 +211,15 @@ final dataflowShadedPom(MavenPublication publication, String shadedPkgName) {
distribution = 'repo'
}
}
withXml {
// This should just happen automatically, but I can't figure out how to make it happen with
// a custom Shadow task.
asNode().appendNode('dependencies').appendNode('dependency')
.appendNode('groupId', 'org.checkerframework').parent()
.appendNode('artifactId', 'checker-qual').parent()
.appendNode('version', version).parent()
.appendNode('scope','runtime')
}
}
}

Expand Down

0 comments on commit fe16b7f

Please sign in to comment.