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-10961] Enable strict dependency analysis on all Java modules #12938
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12938 +/- ##
=======================================
Coverage 82.73% 82.74%
=======================================
Files 466 466
Lines 57518 57518
=======================================
+ Hits 47587 47591 +4
+ Misses 9931 9927 -4
Continue to review full report at Codecov.
|
What is Nebula plugin? Why does Beam need this? |
Run SQL PreCommit |
@ibzib , I consider it is quite large and critical change to be merged all at once. Responding to your suggestion of splitting this PR into multiple separate PR, I am thinking to split this PR into 8 sub PRs as:
See if this proposal looks good to you, or else I welcome your other suggestions. |
runners/flink/1.12/build.gradle
Outdated
@@ -17,6 +17,7 @@ | |||
*/ | |||
|
|||
def basePath = '..' | |||
|
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.
@sonam-vend this is a stray change. please revert.
runners/flink/1.9/build.gradle
Outdated
@@ -17,6 +17,7 @@ | |||
*/ | |||
|
|||
def basePath = '..' | |||
|
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.
stray change please revert.
runners/flink/1.9/build.gradle
Outdated
@@ -31,3 +32,4 @@ project.ext { | |||
|
|||
// Load the main build script which contains all build logic. | |||
apply from: "$basePath/flink_runner.gradle" | |||
|
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.
stray change - please revert
compile library.java.slf4j_jdk14 | ||
|
||
permitUnusedDeclared library.java.slf4j_jdk14 |
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.
nitpick - there should be a be a blank line about the comment - like there was before.
runtime library.java.slf4j_jdk14 | ||
|
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.
nitpick - there should be blank line above the comment like before
compile project(":runners:java-fn-execution") | ||
compile project(":runners:java-job-service") | ||
compile project(path: ":sdks:java:harness", configuration: "shadow") | ||
compile library.java.vendored_grpc_1_26_0 | ||
compile library.java.slf4j_api | ||
|
||
compile library.java.joda_time |
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.
nitpick - there should be a blank line between "compile" and "testcompile" lines like before
sdks/java/build-tools/build.gradle
Outdated
@@ -20,3 +20,4 @@ plugins { id 'org.apache.beam.module' } | |||
applyJavaNature(exportJavadoc: false, publish: false) | |||
|
|||
description = "Apache Beam :: SDKs :: Java :: Build Tools" | |||
|
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.
stray blank line - please remove
compile library.java.grpc_google_cloud_pubsub_v1 | ||
compile library.java.grpc_google_cloud_pubsublite_v1 | ||
//compile library.java.grpc_google_cloud_pubsublite_v1 |
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.
this line should be removed - not commented out.
@@ -68,6 +69,8 @@ dependencies { | |||
testCompile project(path: ":sdks:java:testing:test-utils", configuration: "testRuntime") | |||
testCompile project(":sdks:java:io:jdbc") | |||
testCompile project(path: ":examples:java", configuration: "testRuntime") | |||
|
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.
stray blank line - please remove
runtime library.java.slf4j_jdk14 | ||
} | ||
|
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.
stray blank line - please remove
@@ -13,7 +13,7 @@ | |||
* distributed under the License is distributed on an AS IS BASIS, | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
* limitations under the License | |||
*/ |
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.
period removed by mistake. please bring it back.
compile project(":sdks:java:io:synthetic") | ||
compile project(":sdks:java:testing:test-utils") | ||
compile project(":sdks:java:io:google-cloud-platform") | ||
compile project(":sdks:java:io:kafka") | ||
compile project(":sdks:java:io:kinesis") | ||
|
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.
there should be an empty line between "compile" and "gradleRun" lines - like there was before
@@ -30,12 +30,14 @@ dependencies { | |||
compile project(path: ":sdks:java:core", configuration: "shadow") | |||
compile library.java.vendored_guava_26_0_jre | |||
compile library.java.google_cloud_bigquery | |||
compile project(":sdks:java:extensions:google-cloud-platform-core") | |||
|
|||
compile "com.google.code.gson:gson:2.8.6" |
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.
there should be a blank line between compile and testCompile lines - like there was before
It's up to your discretion, but in general, I would break it into the smallest PRs possible. In other words, wherever you can change one subproject independently of all the others, do so. Specifically, each runner ( |
Run Java PreCommit |
This PR was broken up and merged in parts. See BEAM-10961 for the full list. |
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.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
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.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.