blob: 211b3b9a4a731f809e5068f76f4a10e17efcc809 [file] [log] [blame]
import groovy.json.JsonOutput
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an AS IS BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'org.apache.beam.module'
}
applyJavaNature(
automaticModuleName: 'org.apache.beam.sdk.io.aws',
)
provideIntegrationTestingDependencies()
enableJavaPerformanceTesting()
description = "Apache Beam :: SDKs :: Java :: IO :: Amazon Web Services"
ext.summary = "IO library to read and write Amazon Web Services services from Beam."
dependencies {
implementation library.java.vendored_guava_32_1_2_jre
implementation project(path: ":sdks:java:core", configuration: "shadow")
implementation library.java.aws_java_sdk_cloudwatch
implementation library.java.aws_java_sdk_core
implementation library.java.aws_java_sdk_dynamodb
implementation library.java.aws_java_sdk_s3
implementation library.java.aws_java_sdk_sns
implementation library.java.aws_java_sdk_sqs
implementation library.java.aws_java_sdk_sts
implementation library.java.jackson_core
implementation library.java.jackson_annotations
implementation library.java.jackson_databind
implementation library.java.slf4j_api
implementation library.java.joda_time
implementation library.java.http_core
runtimeOnly library.java.commons_codec
runtimeOnly "org.apache.httpcomponents:httpclient:4.5.12"
testImplementation project(path: ":sdks:java:core", configuration: "shadowTest")
testImplementation project(path: ":sdks:java:extensions:avro", configuration: "testRuntimeMigration")
testImplementation project(path: ":sdks:java:io:common", configuration: "testRuntimeMigration")
testImplementation "io.findify:s3mock_2.12:0.2.6"
testImplementation library.java.commons_lang3
testImplementation library.java.hamcrest
testImplementation library.java.mockito_core
testImplementation library.java.junit
testImplementation library.java.testcontainers_localstack
testImplementation "org.assertj:assertj-core:3.11.1"
testImplementation 'org.elasticmq:elasticmq-rest-sqs_2.12:0.15.6'
testRuntimeOnly library.java.slf4j_jdk14
testRuntimeOnly project(path: ":runners:direct-java", configuration: "shadow")
}
test {
systemProperty "beamTestPipelineOptions", JsonOutput.toJson([
'--awsRegion=us-west-2',
'--awsCredentialsProvider={"@type" : "AWSStaticCredentialsProvider", "awsAccessKeyId" : "key_id_value","awsSecretKey" : "secret_value"}'
])
maxParallelForks 4
}