Skip to content

Commit

Permalink
publishShadowPublicationToMavenLocal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaroclapp committed Jun 23, 2023
1 parent e96cb90 commit 030c38e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jar-infer/jar-infer-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ publishing {
}

afterEvaluate {
// Below is a series of hacks needed to get publication to work with
// Below is a series of hacks needed to get publication to work with
// gradle-maven-publish-plugin >= 0.15.0 (itself needed after the upgrade to Gradle 8.0.2).
// Not sure why e.g. publishShadowPublicationToMavenCentralRepository must depend on signMavenPublication
// (rather than just signShadowPublication)
Expand All @@ -122,5 +122,9 @@ publishing {
project.tasks.named('publishShadowPublicationToMavenCentralRepository').configure {
dependsOn 'signMavenPublication'
}
project.tasks.named('publishShadowPublicationToMavenLocal').configure {
dependsOn 'javaSourcesJar'
dependsOn 'simpleJavadocJar'
}
}
}

0 comments on commit 030c38e

Please sign in to comment.