| /* |
| * 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. |
| */ |
| apply plugin: 'java' |
| apply plugin: 'maven' |
| // All packaging logic is separated into its own build module |
| apply from: 'packages.gradle' |
| |
| group = 'org.apache.bigtop' |
| version = '0.8.0' |
| |
| description = """Bigtop""" |
| |
| |
| sourceCompatibility = 1.6 |
| targetCompatibility = 1.6 |
| |
| task installTopLevel(type:Exec) { |
| workingDir "." |
| commandLine 'mvn clean install -f pom.xml'.split(" ") |
| } |
| |
| task installiTest(type:Exec) { |
| workingDir "." |
| commandLine 'mvn clean install -f bigtop-test-framework/pom.xml -DskipTests'.split(" ") |
| } |
| task installTestArtifacts(type:Exec) { |
| workingDir "." |
| commandLine 'mvn clean install -f bigtop-tests/test-artifacts/pom.xml'.split(" ") |
| } |
| task installConf(type:Exec) { |
| workingDir "." |
| commandLine 'mvn clean install -f bigtop-tests/test-execution/conf/pom.xml'.split(" ") |
| } |
| task installCommon(type:Exec) { |
| workingDir "." |
| commandLine 'mvn clean install -f bigtop-tests/test-execution/common/pom.xml'.split(" ") |
| } |
| task installAllLocalArtifacts() { |
| |
| } |
| |
| installTestArtifacts.mustRunAfter installiTest |
| installiTest.mustRunAfter installTopLevel |
| installAllLocalArtifacts.dependsOn installTopLevel, installCommon, installConf, installiTest, installTestArtifacts |
| |
| repositories { |
| maven { url "http://repository.apache.org/snapshots" } |
| maven { url "http://repo.maven.apache.org/maven2" } |
| } |
| buildscript { |
| repositories { |
| mavenCentral() |
| } |
| dependencies { |
| classpath 'de.undercouch:gradle-download-task:1.0' |
| } |
| } |