TheNeuralBit commented on a change in pull request #13211:
URL: https://github.com/apache/beam/pull/13211#discussion_r520854059
##
File path: sdks/java/container/build.gradle
##
@@ -86,51 +76,21 @@ licenseReport {
renderers = [new JsonReportRenderer()]
}
-def imageJavaVersion = project.hasProperty('imageJavaVersion') ?
project.findProperty('imageJavaVersion') : '8'
-docker {
- name containerImageName(
- name:
"${project.docker_image_default_repo_prefix}java${imageJavaVersion}_sdk",
- root: project.rootProject.hasProperty(["docker-repository-root"]) ?
- project.rootProject["docker-repository-root"] :
- project.docker_image_default_repo_root,
- tag: project.rootProject.hasProperty(["docker-tag"]) ?
- project.rootProject["docker-tag"] : project.sdk_version)
- dockerfile project.file("./Dockerfile")
- files "./build/"
- buildArgs([
-'pull_licenses': project.rootProject.hasProperty(["docker-pull-licenses"])
||
- project.rootProject.hasProperty(["isRelease"]),
-'java_version': imageJavaVersion,
- ])
+task buildAll {
+ dependsOn ':sdks:java:container:java8:docker'
+ dependsOn ':sdks:java:container:java11:docker'
}
task pullLicenses(type: Exec) {
+ dependsOn generateLicenseReport
+ generateLicenseReport.outputs.cacheIf { false }
Review comment:
(not a blocker for this PR) @kennknowles can you comment on why we need
this? It would be good to have a comment explaining it. Looks like it was added
in
https://github.com/apache/beam/commit/ebd65e5314eb42131eace3be62390b3570e71292
##
File path: runners/portability/java/build.gradle
##
@@ -214,7 +214,7 @@ def createUlrValidatesRunnerTask = { name, environmentType
->
}
if (environmentType == "DOCKER") {
-vrTask.dependsOn ":sdks:java:container:docker"
+vrTask.dependsOn ":sdks:java:container:java8:docker"
Review comment:
Are there plans to make this and the other portable tests runnable with
the Java 11 container? Seems like we should drop a TODO and/or file a jira
##
File path: sdks/java/container/build.gradle
##
@@ -86,51 +76,21 @@ licenseReport {
renderers = [new JsonReportRenderer()]
}
-def imageJavaVersion = project.hasProperty('imageJavaVersion') ?
project.findProperty('imageJavaVersion') : '8'
-docker {
Review comment:
Maybe we should keep the `:sdks:java:container:docker` task for a bit
and just have it error with a message directing people to java8:docker and/or
java11:docker?
##
File path: sdks/java/container/build.gradle
##
@@ -54,17 +55,6 @@ dependencies {
dockerDependency library.java.kafka_clients
}
-task copyDockerfileDependencies(type: Copy) {
Review comment:
Ack, thank you
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.
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org