Skip to content

Commit 5a4ceb8

Browse files
feeblefakiekomamitsuclaude
authored
Backport to branch(3.15) : Fix shadow jar being published to GitHub Packages (#3476)
Co-authored-by: Mitsunori Komatsu <komamitsu@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aba6031 commit 5a4ceb8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

schema-loader/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,8 @@ spotbugsTest.reports {
8484
}
8585
spotbugsTest.excludeFilter = file("${project.rootDir}/gradle/spotbugs-exclude.xml")
8686

87-
// for archiving and uploading to maven central
88-
if (project.gradle.startParameter.taskNames.any { it.endsWith('publish') } ||
89-
project.gradle.startParameter.taskNames.any { it.endsWith('publishToMavenLocal') }) {
90-
// not to publish the fat jar to maven central
87+
// for publishing (not to publish the fat jar)
88+
if (project.gradle.startParameter.taskNames.any { it.tokenize(':').last().startsWith('publish') }) {
9189
shadowJar.enabled = false
9290
}
9391

0 commit comments

Comments
 (0)