Skip to content

Commit

Permalink
set enableStrictDependencies:true
Browse files Browse the repository at this point in the history
  • Loading branch information
sonam-vend committed Jan 21, 2021
1 parent 75bc373 commit 02e3666
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runners/flink/1.10/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ project.ext {
apply from: "$basePath/flink_job_server.gradle"

dependencies {
permitUnusedDeclared project(":runners:flink:1.10")
runtimeOnly project(":runners:flink:1.10")
}
2 changes: 1 addition & 1 deletion runners/flink/1.11/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ project.ext {
apply from: "$basePath/flink_job_server.gradle"

dependencies {
permitUnusedDeclared project(":runners:flink:1.11")
runtimeOnly project(":runners:flink:1.11")
}
2 changes: 1 addition & 1 deletion runners/flink/1.12/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ project.ext {
apply from: "$basePath/flink_job_server.gradle"

dependencies {
permitUnusedDeclared project(":runners:flink:1.12")
runtimeOnly project(":runners:flink:1.12")
}
2 changes: 1 addition & 1 deletion runners/flink/1.8/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ project.ext {
apply from: "$basePath/flink_job_server.gradle"

dependencies {
permitUnusedDeclared project(":runners:flink:1.8")
runtimeOnly project(":runners:flink:1.8")
}
2 changes: 1 addition & 1 deletion runners/flink/1.9/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ project.ext {
apply from: "$basePath/flink_job_server.gradle"

dependencies {
permitUnusedDeclared project(":runners:flink:1.9")
runtimeOnly project(":runners:flink:1.9")
}
3 changes: 1 addition & 2 deletions runners/flink/flink_runner.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import groovy.json.JsonOutput

apply plugin: 'org.apache.beam.module'
applyJavaNature(
enableStrictDependencies:true,
automaticModuleName: 'org.apache.beam.runners.flink',
archivesBaseName: (project.hasProperty('archives_base_name') ? archives_base_name : archivesBaseName),
)
Expand Down Expand Up @@ -169,11 +170,9 @@ dependencies {
compile project(path: ":model:job-management:", configuration: "shadow")
compile project(":sdks:java:fn-execution")
compile project(path: ":vendor:sdks-java-extensions-protobuf", configuration: "shadow")
permitUnusedDeclared library.java.jackson_annotations
compile library.java.jackson_databind
compile "org.apache.flink:flink-annotations:$flink_version"
compile "org.apache.flink:flink-optimizer_2.11:$flink_version"
permitUnusedDeclared "org.apache.flink:flink-clients_2.11:$flink_version"
}

class ValidatesRunnerConfig {
Expand Down

0 comments on commit 02e3666

Please sign in to comment.