github.com/apache/beam/sdks/v2@v2.48.2/java/testing/test-utils/build.gradle (about) 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * License); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an AS IS BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 plugins { id 'org.apache.beam.module' } 20 applyJavaNature( 21 exportJavadoc: false, 22 automaticModuleName: 'org.apache.beam.sdk.testutils', 23 archivesBaseName: 'beam-sdks-java-test-utils' 24 ) 25 26 description = "Apache Beam :: SDKs :: Java :: Test Utils" 27 28 dependencies { 29 implementation enforcedPlatform(library.java.google_cloud_platform_libraries_bom) 30 implementation project(path: ":sdks:java:core", configuration: "shadow") 31 implementation library.java.vendored_guava_26_0_jre 32 implementation library.java.google_cloud_bigquery 33 implementation library.java.google_code_gson 34 implementation library.java.joda_time 35 implementation library.java.commons_compress 36 implementation library.java.commons_lang3 37 implementation library.java.http_client 38 implementation library.java.http_core 39 implementation library.java.slf4j_api 40 provided library.java.jmh_core 41 42 testImplementation library.java.junit 43 testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadowTest") 44 } 45 46 task verifyJavaVersion(type: Test) { 47 filter { 48 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyCodeIsCompiledWithJava8' 49 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyTestCodeIsCompiledWithJava11' 50 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyRunningJVMVersionIs11' 51 } 52 doLast { 53 println 'Java verified' 54 } 55 } 56 57 task verifyJavaVersion17(type: Test) { 58 filter { 59 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyCodeIsCompiledWithJava8' 60 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyTestCodeIsCompiledWithJava17' 61 includeTestsMatching 'org.apache.beam.sdk.testutils.jvmverification.JvmVerification.verifyRunningJVMVersionIs17' 62 } 63 doLast { 64 println 'Java verified' 65 } 66 }