From 7a687fcccda2fc33ff2c10979e81f2bbd5371567 Mon Sep 17 00:00:00 2001 From: Shehzaad Nakhoda Date: Wed, 24 Feb 2021 04:22:22 -0800 Subject: [PATCH 1/2] [BEAM-10961] enable strict dependency checking for sdks/java/io/xml --- sdks/java/io/xml/build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sdks/java/io/xml/build.gradle b/sdks/java/io/xml/build.gradle index d6c8ba2761e3..e7758f0cc4a3 100644 --- a/sdks/java/io/xml/build.gradle +++ b/sdks/java/io/xml/build.gradle @@ -17,7 +17,7 @@ */ plugins { id 'org.apache.beam.module' } -applyJavaNature(automaticModuleName: 'org.apache.beam.sdk.io.xml') +applyJavaNature(enableStrictDependencies:true,automaticModuleName: 'org.apache.beam.sdk.io.xml') description = "Apache Beam :: SDKs :: Java :: IO :: XML" ext.summary = "IO to read and write XML files." @@ -25,14 +25,15 @@ ext.summary = "IO to read and write XML files." dependencies { compile library.java.jaxb_api compile library.java.jaxb_impl + permitUnusedDeclared library.java.jaxb_impl // BEAM-11761 compile library.java.vendored_guava_26_0_jre compile project(path: ":sdks:java:core", configuration: "shadow") compile library.java.stax2_api + compile "javax.xml.stream:stax-api:1.0-2" compile library.java.woodstox_core_asl + permitUnusedDeclared library.java.woodstox_core_asl // BEAM-11761 testCompile project(path: ":sdks:java:core", configuration: "shadowTest") testCompile library.java.junit - testCompile library.java.hamcrest_core - testCompile library.java.hamcrest_library testRuntimeOnly library.java.slf4j_jdk14 testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow") } From a72e54ae27a9120901b3097f9779311ba58be345 Mon Sep 17 00:00:00 2001 From: Shehzaad Nakhoda Date: Wed, 24 Feb 2021 04:43:58 -0800 Subject: [PATCH 2/2] [BEAM-10961] fix spacing --- sdks/java/io/xml/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/java/io/xml/build.gradle b/sdks/java/io/xml/build.gradle index e7758f0cc4a3..117633dc146d 100644 --- a/sdks/java/io/xml/build.gradle +++ b/sdks/java/io/xml/build.gradle @@ -17,7 +17,7 @@ */ plugins { id 'org.apache.beam.module' } -applyJavaNature(enableStrictDependencies:true,automaticModuleName: 'org.apache.beam.sdk.io.xml') +applyJavaNature(enableStrictDependencies: true, automaticModuleName: 'org.apache.beam.sdk.io.xml') description = "Apache Beam :: SDKs :: Java :: IO :: XML" ext.summary = "IO to read and write XML files."