-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-7042] remove antlr from shadow configuration #8268
Conversation
The tests passed but the antlr dependency is still leaking, it seems antlr gradle plugin leaks it in the compile scope when colled at |
If you move it into the generateFromSource task, it still leaks I triied this way but I have a really low level of gradle-fu so maybe there is a way to remove it afterwards. diff --git a/sdks/java/core/build.gradle b/sdks/java/core/build.gradle
index a4a1264922..f271733284 100644
--- a/sdks/java/core/build.gradle
+++ b/sdks/java/core/build.gradle
@@ -34,6 +34,7 @@ applyAvroNature()
applyAntlrNature()
generateGrammarSource {
+ dependencies { antlr library.java.antlr }
arguments += ["-visitor"]
}
@@ -58,7 +59,6 @@ test {
}
dependencies {
- antlr library.java.antlr
// Required to load constants from the model, e.g. max timestamp for global window
shadow project(path: ":beam-model-pipeline", configuration: "shadow")
shadow project(path: ":beam-model-job-management", configuration: "shadow")
@@ -69,7 +69,6 @@ dependencies {
compile library.java.commons_compress
compile library.java.commons_lang3
compile library.java.guava_testlib
- shadow library.java.antlr
shadow library.java.jackson_core
shadow library.java.jackson_annotations
shadow library.java.jackson_databind |
Sorry, what does 'it is still leaking' mean. Obviously I did not understand the issue here |
Leaking means that we do not want the main |
I used
to generate the pom file. Diff shows
|
Oh I understood now, thanks @adude3141. Gradle has a different view of dependencies and generated pom. Seems so error-prone, but well then your fix is ok. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.