From c94f1d730c52fead82df7c3c6d63650b75b7ab90 Mon Sep 17 00:00:00 2001 From: Arshad Mahmood <1391251+arshadm@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:24:15 +0000 Subject: [PATCH 1/2] ENT-11271 Publish dependencies in the maven pom.xml --- core/build.gradle | 4 ++-- node/capsule/build.gradle | 1 + opentelemetry/opentelemetry-driver/build.gradle | 3 ++- serialization/build.gradle | 2 +- testing/testserver/testcapsule/build.gradle | 1 + tools/explorer/capsule/build.gradle | 1 + 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/build.gradle b/core/build.gradle index f2fe5c1ea1..0cffc580dc 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -189,8 +189,8 @@ publishing { publications { maven(MavenPublication) { artifactId 'corda-core' - artifact(testJar) - artifact(jar) + artifact testJar + from components.java } } } diff --git a/node/capsule/build.gradle b/node/capsule/build.gradle index d012d8e46e..fe62ce33d0 100644 --- a/node/capsule/build.gradle +++ b/node/capsule/build.gradle @@ -93,6 +93,7 @@ publishing { artifact(buildCordaJAR) { classifier '' } + from components.java } } } diff --git a/opentelemetry/opentelemetry-driver/build.gradle b/opentelemetry/opentelemetry-driver/build.gradle index 0aa9ee8b17..b8fc145051 100644 --- a/opentelemetry/opentelemetry-driver/build.gradle +++ b/opentelemetry/opentelemetry-driver/build.gradle @@ -25,7 +25,8 @@ publishing { publications { shadow(MavenPublication) { publication -> artifactId 'corda-opentelemetry-driver' - project.shadow.component(publication) + artifact shadowJar + from components.java } } } diff --git a/serialization/build.gradle b/serialization/build.gradle index 7393bae2e7..6192d30da2 100644 --- a/serialization/build.gradle +++ b/serialization/build.gradle @@ -75,7 +75,7 @@ publishing { maven(MavenPublication) { artifactId 'corda-serialization' artifact(testJar) - artifact(jar) + from components.java } } } diff --git a/testing/testserver/testcapsule/build.gradle b/testing/testserver/testcapsule/build.gradle index 2566200495..f0c678fdf0 100644 --- a/testing/testserver/testcapsule/build.gradle +++ b/testing/testserver/testcapsule/build.gradle @@ -72,6 +72,7 @@ publishing { artifact(buildWebserverJar) { classifier '' } + from components.java } } } diff --git a/tools/explorer/capsule/build.gradle b/tools/explorer/capsule/build.gradle index add8010d28..75a019f15b 100644 --- a/tools/explorer/capsule/build.gradle +++ b/tools/explorer/capsule/build.gradle @@ -47,6 +47,7 @@ publishing { artifact(buildExplorerJAR) { classifier '' } + from components.java } } } From b7de1dcd235b05b80571151755e1bdb322c6e2de Mon Sep 17 00:00:00 2001 From: Arshad Mahmood <1391251+arshadm@users.noreply.github.com> Date: Wed, 13 Dec 2023 16:13:45 +0000 Subject: [PATCH 2/2] ENT-11253 Publish sources and javadoc --- build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index c239bed37a..c615101f0a 100644 --- a/build.gradle +++ b/build.gradle @@ -287,6 +287,11 @@ allprojects { jvmArgs test_add_exports } + java { + withSourcesJar() + withJavadocJar() + } + tasks.withType(JavaCompile).configureEach { options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options" << "-parameters" options.compilerArgs << '-XDenableSunApiLintControl'