github.com/apache/beam/sdks/v2@v2.48.2/java/io/amazon-web-services/build.gradle (about)

     1  import groovy.json.JsonOutput
     2  
     3  /*
     4   * Licensed to the Apache Software Foundation (ASF) under one
     5   * or more contributor license agreements.  See the NOTICE file
     6   * distributed with this work for additional information
     7   * regarding copyright ownership.  The ASF licenses this file
     8   * to you under the Apache License, Version 2.0 (the
     9   * License); you may not use this file except in compliance
    10   * with the License.  You may obtain a copy of the License at
    11   *
    12   *     http://www.apache.org/licenses/LICENSE-2.0
    13   *
    14   * Unless required by applicable law or agreed to in writing, software
    15   * distributed under the License is distributed on an AS IS BASIS,
    16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    17   * See the License for the specific language governing permissions and
    18   * limitations under the License.
    19   */
    20  
    21  plugins {
    22    id 'org.apache.beam.module'
    23  }
    24  
    25  applyJavaNature(
    26    automaticModuleName: 'org.apache.beam.sdk.io.aws',
    27  )
    28  
    29  provideIntegrationTestingDependencies()
    30  enableJavaPerformanceTesting()
    31  
    32  description = "Apache Beam :: SDKs :: Java :: IO :: Amazon Web Services"
    33  ext.summary = "IO library to read and write Amazon Web Services services from Beam."
    34  
    35  dependencies {
    36    implementation library.java.vendored_guava_26_0_jre
    37    implementation project(path: ":sdks:java:core", configuration: "shadow")
    38    implementation library.java.aws_java_sdk_cloudwatch
    39    implementation library.java.aws_java_sdk_core
    40    implementation library.java.aws_java_sdk_dynamodb
    41    implementation library.java.aws_java_sdk_s3
    42    implementation library.java.aws_java_sdk_sns
    43    implementation library.java.aws_java_sdk_sqs
    44    implementation library.java.aws_java_sdk_sts
    45    implementation library.java.jackson_core
    46    implementation library.java.jackson_annotations
    47    implementation library.java.jackson_databind
    48    implementation library.java.slf4j_api
    49    implementation library.java.joda_time
    50    implementation library.java.http_core
    51    runtimeOnly library.java.commons_codec
    52    runtimeOnly "org.apache.httpcomponents:httpclient:4.5.12"
    53    testImplementation project(path: ":sdks:java:core", configuration: "shadowTest")
    54    testImplementation project(path: ":sdks:java:extensions:avro", configuration: "testRuntimeMigration")
    55    testImplementation project(path: ":sdks:java:io:common", configuration: "testRuntimeMigration")
    56    testImplementation "io.findify:s3mock_2.12:0.2.6"
    57    testImplementation library.java.hamcrest
    58    testImplementation library.java.mockito_core
    59    testImplementation library.java.junit
    60    testImplementation library.java.testcontainers_localstack
    61    testImplementation "org.assertj:assertj-core:3.11.1"
    62    testImplementation 'org.elasticmq:elasticmq-rest-sqs_2.12:0.15.6'
    63    testRuntimeOnly library.java.slf4j_jdk14
    64    testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
    65    testImplementation project(path: ":runners:core-construction-java", configuration: "testRuntimeMigration")
    66  }
    67  
    68  test {
    69    systemProperty "beamTestPipelineOptions", JsonOutput.toJson([
    70        '--awsRegion=us-west-2',
    71        '--awsCredentialsProvider={"@type" : "AWSStaticCredentialsProvider", "awsAccessKeyId" : "key_id_value","awsSecretKey" : "secret_value"}'
    72    ])
    73    maxParallelForks 4
    74  }