jerryshao commented on code in PR #14997:
URL: https://github.com/apache/gravitino/pull/14997#discussion_r4597681626
##########
clients/client-java-runtime/build.gradle.kts:
##########
@@ -32,16 +32,25 @@ configurations.all {
}
}
+// Everything packaged into the shaded runtime jar. Declaring these as
`implementation` would make
+// Gradle publish them as `runtime` scoped POM dependencies and list them in
the Gradle module
+// metadata, so resolving the coordinate would download the modules and
third-party libraries the
+// jar already contains. See https://github.com/apache/gravitino/issues/13171
+val shadedDependencies by configurations.creating {
+ isCanBeConsumed = false
+ isCanBeResolved = true
+}
+
dependencies {
- implementation(project(":clients:client-java"))
+ shadedDependencies(project(":clients:client-java"))
Review Comment:
[P1] With an ordinary Gradle implementation dependency, the published
runtimeElements variant still selects the empty JAR. Moving the bundled inputs
out of implementation now also removes the transitive classes that previously
made that variant usable. This leaves the blocker in
https://github.com/apache/gravitino/pull/14997#discussion_r4597256941
unresolved. Please make the ordinary Java variants expose the shaded artifact
across all eight modules and add a consumer regression test that verifies both
entry-point class availability and the absence of bundled transitive
dependencies.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]