Gradle : Running another build from a build

build.gradlegradle

task build(type: GradleBuild) {
    buildFile = 'other.gradle'
    tasks = [ 'hello']
}

other.gradleui

task hello << {
    println "hello from the other build."
}

Output of gradle -q buildcode

gradle -q build hello from the other build.co

相關文章
相關標籤/搜索