Skip to content

Commit

Permalink
Merge pull request #14115 from sonam-vend/fix-flink-job-server
Browse files Browse the repository at this point in the history
[BEAM-10961] enable strict dependency checking for flink/job-server
  • Loading branch information
ibzib committed Mar 1, 2021
2 parents 0aa07a5 + 3eea80d commit 7450e57
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 20 deletions.
4 changes: 0 additions & 4 deletions runners/flink/1.10/job-server/build.gradle
Expand Up @@ -29,7 +29,3 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/flink_job_server.gradle"

dependencies {
runtimeOnly project(":runners:flink:1.10")
}
4 changes: 0 additions & 4 deletions runners/flink/1.11/job-server/build.gradle
Expand Up @@ -29,7 +29,3 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/flink_job_server.gradle"

dependencies {
runtimeOnly project(":runners:flink:1.11")
}
4 changes: 0 additions & 4 deletions runners/flink/1.12/job-server/build.gradle
Expand Up @@ -29,7 +29,3 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/flink_job_server.gradle"

dependencies {
runtimeOnly project(":runners:flink:1.12")
}
4 changes: 0 additions & 4 deletions runners/flink/1.8/job-server/build.gradle
Expand Up @@ -29,7 +29,3 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/flink_job_server.gradle"

dependencies {
runtimeOnly project(":runners:flink:1.8")
}
4 changes: 0 additions & 4 deletions runners/flink/1.9/job-server/build.gradle
Expand Up @@ -29,7 +29,3 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/flink_job_server.gradle"

dependencies {
runtimeOnly project(":runners:flink:1.9")
}
2 changes: 2 additions & 0 deletions runners/flink/job-server/flink_job_server.gradle
Expand Up @@ -30,6 +30,7 @@ apply plugin: 'application'
mainClassName = "org.apache.beam.runners.flink.FlinkJobServerDriver"

applyJavaNature(
enableStrictDependencies: true,
automaticModuleName: 'org.apache.beam.runners.flink.jobserver',
archivesBaseName: project.hasProperty('archives_base_name') ? archives_base_name : archivesBaseName,
validateShadowJar: false,
Expand Down Expand Up @@ -78,6 +79,7 @@ configurations.all {

dependencies {
compile project(flinkRunnerProject)
permitUnusedDeclared project(flinkRunnerProject) // BEAM-11761
runtime group: "org.slf4j", name: "jcl-over-slf4j", version: dependencies.create(project.library.java.slf4j_api).getVersion()
validatesPortableRunner project(path: flinkRunnerProject, configuration: "testRuntime")
validatesPortableRunner project(path: ":sdks:java:core", configuration: "shadowTest")
Expand Down

0 comments on commit 7450e57

Please sign in to comment.