blob: fa249bc93a882163c44016fbca8b3bdb071fa779 [file] [log] [blame]
/*
* 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 'java'
}
description = "Apache Beam :: SDKs :: Java :: TPC-DS Benchark"
version '2.24.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'com.googlecode.json-simple:json-simple:1.1.1'
compile project(path: ":sdks:java:core", configuration: "shadow")
compile project(path: ":runners:google-cloud-dataflow-java")
compile project(":sdks:java:io:google-cloud-platform")
compile project(":sdks:java:extensions:sql")
compile group: 'com.google.auto.service', name: 'auto-service', version: '1.0-rc1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// When running via Gradle, this property can be used to pass commandline arguments
// to the tpcds run
def tpcdsArgsProperty = "tpcds.args"
task run(type: JavaExec) {
main = "org.apache.beam.sdk.tpcds.BeamTpcds"
classpath = sourceSets.main.runtimeClasspath
def tpcdsArgsStr = project.findProperty(tpcdsArgsProperty) ?: ""
args tpcdsArgsStr.split()
}