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 22, 2021
1 parent 73be4b6 commit 0ef8888
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 23 deletions.
3 changes: 2 additions & 1 deletion sdks/java/extensions/euphoria/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

plugins { id 'org.apache.beam.module' }
applyJavaNature(
enableStrictDependencies: true,
exportJavadoc: false,
automaticModuleName: 'org.apache.beam.sdk.extensions.euphoria',
)
Expand All @@ -27,7 +28,7 @@ description = "Apache Beam :: SDKs :: Java :: Extensions :: Euphoria Java 8 DSL"
dependencies {
compile project(path: ":sdks:java:core", configuration: "shadow")
implementation library.java.slf4j_api
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.10.2'
implementation library.java.jackson_annotations
implementation library.java.vendored_guava_26_0_jre
implementation library.java.joda_time
testCompile project(":sdks:java:extensions:kryo")
Expand Down
5 changes: 2 additions & 3 deletions sdks/java/extensions/google-cloud-platform-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import groovy.json.JsonOutput

plugins { id 'org.apache.beam.module' }
applyJavaNature(

enableStrictDependencies: true,
automaticModuleName: 'org.apache.beam.sdk.extensions.gcp')

description = "Apache Beam :: SDKs :: Java :: Extensions :: Google Cloud Platform Core"
Expand All @@ -38,7 +38,6 @@ test {
dependencies {
compile "org.apache.httpcomponents:httpclient:4.5.10"
compile "org.apache.httpcomponents:httpcore:4.4.12"
compile "org.checkerframework:checker-qual:2.0.0"
compile enforcedPlatform(library.java.google_cloud_platform_libraries_bom)
compile library.java.vendored_guava_26_0_jre
compile project(path: ":sdks:java:core", configuration: "shadow")
Expand All @@ -55,7 +54,7 @@ dependencies {
compile library.java.slf4j_api
compile library.java.joda_time
compile library.java.jackson_annotations
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.10.2'
testImplementation library.java.jackson_databind
provided library.java.hamcrest_core
provided library.java.junit
testCompile project(path: ":sdks:java:core", configuration: "shadowTest")
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/join-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

plugins { id 'org.apache.beam.module' }
applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.joinlibrary')
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.joinlibrary')

description = "Apache Beam :: SDKs :: Java :: Extensions :: Join library"

Expand Down
4 changes: 2 additions & 2 deletions sdks/java/extensions/kryo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ext {
kryoVersion = '4.0.2'
}

applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.kryo',
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.kryo',
exportJavadoc: false,
shadowClosure: {
dependencies {
Expand All @@ -41,7 +41,7 @@ description = 'Apache Beam :: SDKs :: Java :: Extensions :: Kryo'
dependencies {
compile "com.esotericsoftware:kryo:${kryoVersion}"
compile library.java.jackson_annotations
compile "org.apache.beam:beam-vendor-guava-26_0-jre:0.1"
compile library.java.vendored_guava_26_0_jre
compile "org.objenesis:objenesis:2.5.1"
shadow project(path: ':sdks:java:core', configuration: 'shadow')
testCompile project(path: ':sdks:java:core', configuration: 'shadowTest')
Expand Down
7 changes: 3 additions & 4 deletions sdks/java/extensions/ml/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import groovy.json.JsonOutput
*/

plugins { id 'org.apache.beam.module' }
applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.ml')
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.ml')

description = 'Apache Beam :: SDKs :: Java :: Extensions :: ML'

Expand All @@ -35,13 +35,12 @@ dependencies {
compile 'com.google.api.grpc:proto-google-cloud-video-intelligence-v1:1.2.0'
compile 'com.google.api.grpc:proto-google-cloud-vision-v1:1.81.3'
compile 'com.google.api:gax:1.57.1'
compile 'com.google.protobuf:protobuf-java:3.11.1'
compile 'org.checkerframework:checker-qual:2.0.0'
compile library.java.protobuf_java
compile library.java.slf4j_api
provided library.java.junit
testCompile project(path: ':sdks:java:core', configuration: 'shadowTest')
compile 'com.google.cloud:google-cloud-vision:1.99.3'
permitUsedUndeclared "com.google.auto.value:auto-value-annotations:1.7"
//permitUsedUndeclared "com.google.auto.value:auto-value-annotations:1.7"
testCompile library.java.mockito_core
testCompile 'com.google.cloud:google-cloud-video-intelligence:1.2.0'
implementation 'com.google.cloud:google-cloud-dlp:1.1.4'
Expand Down
1 change: 1 addition & 0 deletions sdks/java/extensions/protobuf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

plugins { id 'org.apache.beam.module' }
applyJavaNature(
enableStrictDependencies : true,
generatedClassPatterns: [
/^org\.apache\.beam\.sdk\.extensions\.protobuf\.Proto2CoderTestMessages/,
/^org\.apache\.beam\.sdk\.extensions\.protobuf\.Proto2SchemaMessages/,
Expand Down
5 changes: 3 additions & 2 deletions sdks/java/extensions/schemaio-expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {
}

applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.schemaio.expansion',
validateShadowJar: false,
shadowClosure: {
Expand All @@ -33,10 +34,10 @@ dependencies {
compile project(path: ":model:pipeline", configuration: "shadow")
compile project(path: ":sdks:java:core", configuration: "shadow")
compile library.java.vendored_grpc_1_26_0
compile "org.apache.beam:beam-vendor-guava-26_0-jre:0.1"
compile library.java.vendored_guava_26_0_jre
testCompile library.java.junit
testCompile library.java.mockito_core
// TODO(BEAM-10632): remove this dependency
testCompile "org.checkerframework:checker-qual:3.5.0"
}


1 change: 1 addition & 0 deletions sdks/java/extensions/sketching/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

plugins { id 'org.apache.beam.module' }
applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.sketching')

description = "Apache Beam :: SDKs :: Java :: Extensions :: Sketching"
Expand Down
1 change: 1 addition & 0 deletions sdks/java/extensions/sorter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import java.util.stream.Collectors

plugins { id 'org.apache.beam.module' }
applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.sorter')

description = "Apache Beam :: SDKs :: Java :: Extensions :: Sorter"
Expand Down
1 change: 0 additions & 1 deletion sdks/java/extensions/sql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ dependencies {
compile library.java.slf4j_api
compile library.java.joda_time
compile library.java.vendored_guava_26_0_jre
compile "org.checkerframework:checker-qual:2.0.0"
permitUnusedDeclared project(":sdks:java:core")
provided project(":sdks:java:io:kafka")
provided project(":sdks:java:io:google-cloud-platform")
Expand Down
3 changes: 1 addition & 2 deletions sdks/java/extensions/sql/datacatalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import groovy.json.JsonOutput

plugins { id 'org.apache.beam.module' }

applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.sql.datacatalog')
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.sql.datacatalog')

dependencies {
compile enforcedPlatform(library.java.google_cloud_platform_libraries_bom)
Expand All @@ -30,7 +30,6 @@ dependencies {
compile "com.google.api.grpc:proto-google-cloud-datacatalog-v1beta1:0.32.1"
compile "com.google.api:gax:1.57.1"
compile "com.google.auth:google-auth-library-credentials:0.19.0"
compile "org.checkerframework:checker-qual:2.0.0"
compile library.java.vendored_guava_26_0_jre
compile library.java.slf4j_api
compile project(path: ":sdks:java:core", configuration: "shadow")
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/sql/expansion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
plugins { id 'org.apache.beam.module' }

applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdks.extensions.sql.expansion',
validateShadowJar: false,
shadowClosure: {
Expand All @@ -36,7 +37,6 @@ dependencies {
compile project(path: ":sdks:java:extensions:sql:zetasql")
compile project(path: ":sdks:java:core", configuration: "shadow")
compile "org.apache.beam:beam-vendor-guava-26_0-jre:0.1"
compile "org.checkerframework:checker-qual:2.0.0"
}

task runExpansionService (type: JavaExec) {
Expand Down
1 change: 1 addition & 0 deletions sdks/java/extensions/sql/hcatalog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
plugins { id 'org.apache.beam.module' }

applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.sql.meta.provider.hcatalog',
classesTriggerCheckerBugs: [
'HCatalogTable': 'TODO: file a bug report',
Expand Down
3 changes: 1 addition & 2 deletions sdks/java/extensions/sql/jdbc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import groovy.json.JsonOutput
*/

plugins { id 'org.apache.beam.module' }
applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.sql.jdbc',
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.sql.jdbc',
exportJavadoc: false,
testShadowJar: true,
validateShadowJar: false,
Expand All @@ -42,7 +42,6 @@ dependencies {
integrationTest sourceSets.main.output
integrationTest library.java.junit
compile project(path: ":sdks:java:core", configuration: "shadow")
compile "org.checkerframework:checker-qual:2.0.0"
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/sql/perf-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

plugins { id 'org.apache.beam.module' }
applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.sql.meta.provider')
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.sql.meta.provider')
provideIntegrationTestingDependencies()
enableJavaPerformanceTesting()

Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/sql/udf/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

plugins { id 'org.apache.beam.module' }

applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.extensions.sql.udf')
applyJavaNature(enableStrictDependencies : true, automaticModuleName: 'org.apache.beam.sdk.extensions.sql.udf')

description = "Apache Beam :: SDKs :: Java :: Extensions :: SQL :: UDF"
ext.summary = "Provides interfaces for defining user-defined functions in Beam SQL."
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/sql/zetasql/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ plugins {
}

applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.sql.zetasql',
)

Expand All @@ -41,7 +42,6 @@ dependencies {
compile "com.google.zetasql:zetasql-types:$zetasql_version"
compile library.java.joda_time
compile library.java.vendored_guava_26_0_jre
compile "org.checkerframework:checker-qual:2.0.0"
permitUnusedDeclared library.java.protobuf_java_util
compile "com.google.zetasql:zetasql-jni-channel:$zetasql_version"
permitUnusedDeclared "com.google.zetasql:zetasql-jni-channel:$zetasql_version"
Expand Down
2 changes: 1 addition & 1 deletion sdks/java/extensions/zetasketch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import groovy.json.JsonOutput

plugins { id 'org.apache.beam.module' }
applyJavaNature(
enableStrictDependencies : true,
automaticModuleName: 'org.apache.beam.sdk.extensions.zetasketch')

description = "Apache Beam :: SDKs :: Java :: Extensions :: ZetaSketch"
Expand All @@ -33,7 +34,6 @@ dependencies {
compile library.java.vendored_guava_26_0_jre
compile project(path: ":sdks:java:core", configuration: "shadow")
compile "com.google.zetasketch:zetasketch:$zetasketch_version"
compile "org.checkerframework:checker-qual:2.8.1"
testCompile library.java.junit
testCompile project(":sdks:java:io:google-cloud-platform")
testRuntimeOnly library.java.slf4j_simple
Expand Down

0 comments on commit 0ef8888

Please sign in to comment.