Skip to content

Commit

Permalink
Fix publication details for shadowed jars (#5548)
Browse files Browse the repository at this point in the history
Fixes #5547
  • Loading branch information
niloc132 committed May 30, 2024
1 parent f8e269a commit 770440b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
4 changes: 0 additions & 4 deletions authentication/example-providers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ plugins {

project.subprojects { Project p ->
p.plugins.apply('java-library')

// Combined, these next two lines will activate the JAVA_PUBLIC_SHADOW to all
// sub-projects, and in turn, apply the shadow plugin
p.setProperty('io.deephaven.project.ProjectType', 'JAVA_PUBLIC_SHADOW')
p.plugins.apply('io.deephaven.project.register')

p.dependencies {
Expand Down
1 change: 1 addition & 0 deletions authentication/example-providers/mtls/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW
1 change: 1 addition & 0 deletions authentication/example-providers/oidc/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW
1 change: 1 addition & 0 deletions authentication/example-providers/psk/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ PublishingTools.setupPublications(project) { publication ->
// This assumes that the shadow plugin is enabled, rather than using the vanilla java component.

// Inlines the shadow.component call, which doesn't actually use components, and doesn't generate
// the pom late enough to pick up gradle's own artifactId wiring from our archivesBaseName changes
// the pom late enough to pick up gradle's own artifactId wiring from our archivesBaseName changes.
// Also un-sets the classifier for the shadow jar, since we want this to be the default artifact
// project.shadow.component(publication)
publication.artifact(project.tasks.named("shadowJar"))
publication.artifact(source: project.tasks.named("shadowJar"), classifier: '')
publication.pom {
withXml {
def root = asNode()
Expand Down

0 comments on commit 770440b

Please sign in to comment.