2016-07-27 19 views

Antwort

3

build.gradle

apply from: 'other.gradle' 

other.gradle

println "configuring $project" 
task hello << { 
    println 'hello from other script' 
} 

Ausgabe von gradle -q hallo

> gradle -q hello 
configuring root project 'configureProjectUsingScript' 
hello from other script 

Quelle: Configuring the project using an external build script