You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2015/03/07 04:03:45 UTC
bigtop git commit: BIGTOP-1731. Gradle mustRunAfter doesn't work is
expected
Repository: bigtop
Updated Branches:
refs/heads/master d772d5101 -> 90c7e43f0
BIGTOP-1731. Gradle mustRunAfter doesn't work is expected
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/90c7e43f
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/90c7e43f
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/90c7e43f
Branch: refs/heads/master
Commit: 90c7e43f03d0fa2b46273fe67a9f5066e96c4ecd
Parents: d772d51
Author: Konstantin Boudnik <co...@apache.org>
Authored: Fri Mar 6 11:17:55 2015 -0800
Committer: Konstantin Boudnik <co...@apache.org>
Committed: Fri Mar 6 11:18:23 2015 -0800
----------------------------------------------------------------------
build.gradle | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/90c7e43f/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 2fb4c2f..752c5d1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -108,11 +108,11 @@ task installTopLevel(type:Exec) {
commandLine 'mvn clean install -f pom.xml'.split(" ")
}
-task installiTest(type:Exec) {
+task installiTest(dependsOn: installTopLevel, type:Exec) {
workingDir "."
commandLine 'mvn clean install -f bigtop-test-framework/pom.xml -DskipTests'.split(" ")
}
-task installTestArtifacts(type:Exec) {
+task installTestArtifacts(dependsOn: installiTest, type:Exec) {
workingDir "."
commandLine 'mvn clean install -f bigtop-tests/test-artifacts/pom.xml'.split(" ")
}
@@ -138,7 +138,10 @@ def artifactToInstall = {
def project = new XmlSlurper().parse("$TEST_DIR/pom.xml")
project.modules.module.each { artifact ->
- task "install-${artifact}" (description: "Installs ${artifact} artifact with Maven", group: TESTARTIFACTS_GROUP) << {
+ task "install-${artifact}" (description: "Installs ${artifact} artifact with Maven",
+ group: TESTARTIFACTS_GROUP,
+ dependsOn: installiTest
+ ) << {
def final PATH = "${TEST_DIR}/$artifact/pom.xml"
def final WRAPPER = "mvn clean install -f " + PATH
exec {
@@ -153,8 +156,6 @@ project.afterEvaluate{
artifactToInstall(dependsOn: [installTopLevel, installCommon, installConf, installiTest])
}
-installTestArtifacts.mustRunAfter installiTest
-installiTest.mustRunAfter installTopLevel
installAllLocalArtifacts.dependsOn installTopLevel, installCommon, installConf, installiTest, installTestArtifacts
repositories {
@@ -168,4 +169,4 @@ buildscript {
dependencies {
classpath 'de.undercouch:gradle-download-task:1.0'
}
-}
\ No newline at end of file
+}