Given two files:

build.gradle with :

aplly from: main.gradle

task someTask << {
     myMainMethod()
}

main.gradle with:

def myMainMethod(){
     println "Main Method"
}

Why does this not work? Why did the file build.gradle not see my method?




--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Call-some-function-from-another-gradle-file-tp5712293.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to