You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/11/18 20:14:26 UTC
[GitHub] [beam] apilloud opened a new pull request, #24264: Simplify sdks/java/harness shadowJar
apilloud opened a new pull request, #24264:
URL: https://github.com/apache/beam/pull/24264
This reduces the surface area of the shadowJar to avoid conflicts with user code. It is expected that the user will provide a working copy of Beam core and its dependencies.
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
- [ ] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more tips on [how to make review process smoother](https://beam.apache.org/contribute/get-started-contributing/#make-the-reviewers-job-easier).
To check the build health, please visit [https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md](https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md)
GitHub Actions Tests Status (on master branch)
------------------------------------------------------------------------------------------------
[](https://github.com/apache/beam/actions?query=workflow%3A%22Build+python+source+distribution+and+wheels%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Python+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Java+Tests%22+branch%3Amaster+event%3Aschedule)
[](https://github.com/apache/beam/actions?query=workflow%3A%22Go+tests%22+branch%3Amaster+event%3Aschedule)
See [CI.md](https://github.com/apache/beam/blob/master/CI.md) for more information about GitHub Actions CI.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033950714
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
Review Comment:
Done.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329832961
Failure in precommit is #24383
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1324209569
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1322742346
Spotless failure is #20819
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] lukecwik commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
lukecwik commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1034026428
##########
sdks/java/harness/jmh/build.gradle:
##########
@@ -41,6 +41,7 @@ dependencies {
implementation library.java.joda_time
runtimeOnly library.java.slf4j_jdk14
jammAgent library.java.jamm
+ runtimeOnly library.java.jamm
Review Comment:
testRuntimeOnly?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033956176
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
Review Comment:
I'm assuming your goal is to revert the changes to `BeamModulePlugin.groovy`? That is not possible. I did prototype this change and got the same error as `project.configurations.all` applies to all configurations not just ones defined in the file.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033934023
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
+ implementation project(":runners:core-construction-java")
+ implementation project(":runners:core-java")
+ implementation project(":sdks:java:fn-execution")
Review Comment:
Reverted.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1324033979
Run Java PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] lukecwik commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
lukecwik commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028456273
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
+ "org/apache/beam/sdk/**",
+ "org/checkerframework/**",
+ "org/github/jamm/**",
Review Comment:
I think jamm should be provided as it needs to be on the boot agent classpath
##########
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy:
##########
@@ -1022,6 +1022,50 @@ class BeamModulePlugin implements Plugin<Project> {
}
}
+ // Ban these dependencies from all configurations
+ project.configurations.all {
Review Comment:
Why did you need/want to move these up to here?
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
+ "org/apache/beam/sdk/**",
Review Comment:
can this be narrowed down to `org/apache/beam/sdk/fn/**`?
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
Review Comment:
I would expect this to be provided
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
Review Comment:
Can this be narrowed down to the two underlying packages
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
+ implementation project(":runners:core-construction-java")
+ implementation project(":runners:core-java")
+ implementation project(":sdks:java:fn-execution")
Review Comment:
I would expect this to be provided
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
Review Comment:
Where does this one come from?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028518320
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
+ "org/apache/beam/sdk/**",
Review Comment:
Yes, done.
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
Review Comment:
Narrowed down to `"org/apache/beam/fn/core/**"`
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
Review Comment:
This is the sdks/java/harness package (this one). User defined rules replace the default rule. The default rule is org/apache/beam/**:
https://github.com/apache/beam/blob/a2d33ce759c6290ce17907fd99139c62b4722386/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy#L153
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028519407
##########
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy:
##########
@@ -1022,6 +1022,50 @@ class BeamModulePlugin implements Plugin<Project> {
}
}
+ // Ban these dependencies from all configurations
+ project.configurations.all {
Review Comment:
`Cannot change dependencies of dependency configuration ':sdks:java:harness:provided' after it has been resolved.` This changes all configurations.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329958129
Run Java PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1320494651
Run SQL PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1324208747
R: @lukecwik
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028637031
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
+ "org/apache/beam/sdk/**",
+ "org/checkerframework/**",
+ "org/github/jamm/**",
Review Comment:
Done.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028612781
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
+ implementation project(":runners:core-construction-java")
+ implementation project(":runners:core-java")
+ implementation project(":sdks:java:fn-execution")
Review Comment:
Does this need a CHANGES.md update? Who should be providing it?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329871461
Run Java PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033936769
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
Review Comment:
Done
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329833123
Run Java PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033971264
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+
+ // :sdks:java:core and transitive dependencies
+ provided project(path: ":model:pipeline", configuration: "shadow")
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+ provided library.java.joda_time
+ provided library.java.slf4j_api
+ provided library.java.vendored_grpc_1_48_1
+ provided library.java.vendored_guava_26_0_jre
+
+ // :sdks:java:fn-execution and transitive dependencies
+ provided project(path: ":model:fn-execution", configuration: "shadow")
+ provided project(":sdks:java:fn-execution")
Review Comment:
Done.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028601982
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
Review Comment:
I've moved all transitive dependencies of `:sdks:java:core` to provided.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1322619697
This still fails a bunch of tests, not yet ready for review.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1320494519
Failure is #24267
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1320577174
Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment `assign set of reviewers`
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] codecov[bot] commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
codecov[bot] commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1320513190
# [Codecov](https://codecov.io/gh/apache/beam/pull/24264?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#24264](https://codecov.io/gh/apache/beam/pull/24264?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (666a462) into [master](https://codecov.io/gh/apache/beam/commit/239fe6a08a4cd1e7ca0cd7ba38c275656553bd66?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (239fe6a) will **increase** coverage by `0.00%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## master #24264 +/- ##
=======================================
Coverage 73.45% 73.45%
=======================================
Files 714 714
Lines 96497 96497
=======================================
+ Hits 70883 70884 +1
+ Misses 24291 24290 -1
Partials 1323 1323
```
| Flag | Coverage Δ | |
|---|---|---|
| python | `83.16% <ø> (+<0.01%)` | :arrow_up: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/beam/pull/24264?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [.../python/apache\_beam/transforms/periodicsequence.py](https://codecov.io/gh/apache/beam/pull/24264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vdHJhbnNmb3Jtcy9wZXJpb2RpY3NlcXVlbmNlLnB5) | `97.01% <0.00%> (-1.50%)` | :arrow_down: |
| [...hon/apache\_beam/runners/worker/bundle\_processor.py](https://codecov.io/gh/apache/beam/pull/24264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy93b3JrZXIvYnVuZGxlX3Byb2Nlc3Nvci5weQ==) | `93.42% <0.00%> (+0.12%)` | :arrow_up: |
| [.../apache\_beam/runners/interactive/dataproc/types.py](https://codecov.io/gh/apache/beam/pull/24264/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-c2Rrcy9weXRob24vYXBhY2hlX2JlYW0vcnVubmVycy9pbnRlcmFjdGl2ZS9kYXRhcHJvYy90eXBlcy5weQ==) | `96.55% <0.00%> (+3.44%)` | :arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1324171683
Run Java PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] lukecwik commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
lukecwik commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033921819
##########
sdks/java/harness/build.gradle:
##########
@@ -55,21 +64,19 @@ description = "Apache Beam :: SDKs :: Java :: Harness"
ext.summary = "This contains the SDK Fn Harness for Beam Java"
dependencies {
- dependOnShadedProjects.each {
- implementation project(path: it, configuration: "shadow")
- }
- dependOnProjects.each {
- implementation project(it)
- }
- shadow library.java.vendored_guava_26_0_jre
+ implementation project(path: ":model:fn-execution", configuration: "shadow")
+ implementation project(path: ":model:pipeline", configuration: "shadow")
+ implementation project(":runners:core-construction-java")
+ implementation project(":runners:core-java")
+ implementation project(":sdks:java:fn-execution")
Review Comment:
Was wrong, we'll need to keep it as is.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329958092
Failures are #24267 and #24389
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033938345
##########
CHANGES.md:
##########
@@ -78,6 +78,8 @@
dependency of the Java SDK Harness. Some users of a portable runner (such as Dataflow Runner v2)
may have an undeclared dependency on this package (for example using GCS with
TextIO) and will now need to declare the dependency.
+* `beam-sdks-java-core` is no longer a dependency of the Java SDK Harness. Users of a portable
+ runner (such as Dataflow Runner v2) will need to provide this package and it's dependecies.
Review Comment:
Done.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] lukecwik commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
lukecwik commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1034025378
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
Review Comment:
That was the primary goal. We can leave as is.
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1329871403
Failure in precommits is #24384 and #21714
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud merged pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud merged PR #24264:
URL: https://github.com/apache/beam/pull/24264
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] lukecwik commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
lukecwik commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1033927030
##########
CHANGES.md:
##########
@@ -78,6 +78,8 @@
dependency of the Java SDK Harness. Some users of a portable runner (such as Dataflow Runner v2)
may have an undeclared dependency on this package (for example using GCS with
TextIO) and will now need to declare the dependency.
+* `beam-sdks-java-core` is no longer a dependency of the Java SDK Harness. Users of a portable
+ runner (such as Dataflow Runner v2) will need to provide this package and it's dependecies.
Review Comment:
```suggestion
runner (such as Dataflow Runner v2) will need to provide this package and its dependencies.
```
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
Review Comment:
I was thinking that we would be able to decouple this from using `provided` if we declared an arbitrary configuration here like `resolveForShadowJar` and then specify the dependencies twice, once before the `applyJavaNature` in the `resolveForShadowJar` configuration and once in the `provided` configuration after the `applyJavaNature`. This way don't force this limitation on to `BeamModulePlugin.groovy`
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+
+ // :sdks:java:core and transitive dependencies
+ provided project(path: ":model:pipeline", configuration: "shadow")
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+ provided library.java.joda_time
+ provided library.java.slf4j_api
+ provided library.java.vendored_grpc_1_48_1
+ provided library.java.vendored_guava_26_0_jre
+
+ // :sdks:java:fn-execution and transitive dependencies
+ provided project(path: ":model:fn-execution", configuration: "shadow")
+ provided project(":sdks:java:fn-execution")
Review Comment:
I think your right that we need to keep this as `implementation`. Some future change can deal with moving more and more dependencies out of the shadowJar
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
Review Comment:
Please narrow to `org/apache/beam/fn/harness/**`
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,51 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
Review Comment:
Can we set the GCP libraries BOM as the enforced platform for `provided` and `implementation` configurations
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1322742561
Run Spotless PreCommit
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] github-actions[bot] commented on pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #24264:
URL: https://github.com/apache/beam/pull/24264#issuecomment-1322609793
Assigning reviewers. If you would like to opt out of this review, comment `assign to next reviewer`:
R: @robertwb for label java.
R: @Abacn for label build.
Available commands:
- `stop reviewer notifications` - opt out of the automated review tooling
- `remind me after tests pass` - tag the comment author after tests pass
- `waiting on author` - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)
The PR bot will only process comments in the main thread (not review comments).
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] apilloud commented on a diff in pull request #24264: Simplify sdks/java/harness shadowJar
Posted by GitBox <gi...@apache.org>.
apilloud commented on code in PR #24264:
URL: https://github.com/apache/beam/pull/24264#discussion_r1028518353
##########
sdks/java/harness/build.gradle:
##########
@@ -18,35 +18,44 @@
plugins { id 'org.apache.beam.module' }
-// We specifically enumerate all the projects that we depend on since
-// the list is used in both defining the included set for the uber jar
-// and also the set of project level dependencies.
-def dependOnShadedProjects = [":model:pipeline", ":model:fn-execution", ":sdks:java:core"]
-def dependOnProjects = [":sdks:java:fn-execution",
- ":runners:core-java", ":runners:core-construction-java"]
+configurations {
+ provided
+}
+
+dependencies {
+ // provided dependencies are declared early so they can be resolved in shadowClosure
+ provided project(path: ":sdks:java:core", configuration: "shadow")
+}
applyJavaNature(
classesTriggerCheckerBugs: [
'AssignWindowsRunner': 'https://github.com/typetools/checker-framework/issues/3794',
'WindowMergingFnRunner': 'https://github.com/typetools/checker-framework/issues/3794',
],
automaticModuleName: 'org.apache.beam.fn.harness',
- validateShadowJar: false,
testShadowJar: true,
+ shadowJarValidationExcludes: [
+ "io/github/classgraph/**",
+ "nonapi/io/github/classgraph/**",
+ "org/apache/beam/fn/**",
+ "org/apache/beam/model/**",
+ "org/apache/beam/runners/**",
Review Comment:
Narrowed down to `"org/apache/beam/runners/core/**"` and `"org/apache/beam/runners/core/construction/**"`
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org