diff --git a/authentication/example-providers/build.gradle b/authentication/example-providers/build.gradle index 4d1761cd04e..658e25f7980 100644 --- a/authentication/example-providers/build.gradle +++ b/authentication/example-providers/build.gradle @@ -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 { diff --git a/authentication/example-providers/mtls/gradle.properties b/authentication/example-providers/mtls/gradle.properties new file mode 100644 index 00000000000..975fc08cc6e --- /dev/null +++ b/authentication/example-providers/mtls/gradle.properties @@ -0,0 +1 @@ +io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW diff --git a/authentication/example-providers/oidc/gradle.properties b/authentication/example-providers/oidc/gradle.properties new file mode 100644 index 00000000000..975fc08cc6e --- /dev/null +++ b/authentication/example-providers/oidc/gradle.properties @@ -0,0 +1 @@ +io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW diff --git a/authentication/example-providers/psk/gradle.properties b/authentication/example-providers/psk/gradle.properties new file mode 100644 index 00000000000..975fc08cc6e --- /dev/null +++ b/authentication/example-providers/psk/gradle.properties @@ -0,0 +1 @@ +io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW diff --git a/authentication/example-providers/sql-username-password/gradle.properties b/authentication/example-providers/sql-username-password/gradle.properties new file mode 100644 index 00000000000..975fc08cc6e --- /dev/null +++ b/authentication/example-providers/sql-username-password/gradle.properties @@ -0,0 +1 @@ +io.deephaven.project.ProjectType=JAVA_PUBLIC_SHADOW diff --git a/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle b/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle index 5fb2531fc08..ccb61709b22 100644 --- a/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle +++ b/buildSrc/src/main/groovy/io.deephaven.java-shadow-publishing-conventions.gradle @@ -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()