build.gradle
1task build(type: GradleBuild) { 2 buildFile = 'other.gradle' 3 tasks = [ 'hello'] 4}
other.gradle
1task hello << { 2 println "hello from the other build." 3}
Output of gradle -q build
gradle -q build hello from the other build.
Stella981
2021-10-11
build.gradle
1task build(type: GradleBuild) { 2 buildFile = 'other.gradle' 3 tasks = [ 'hello'] 4}
other.gradle
1task hello << { 2 println "hello from the other build." 3}
Output of gradle -q build
gradle -q build hello from the other build.