If I do from build.gradle :

buildscript {
  dependencies {
     classpath 'group:name:1.0'
  }
}

task ngetes << {
  SomeUtil.doSomething 'hello'
}

task ngetes can use classes from the dependency just fine.

However I build.gradle contains :

apply from: 'common.gradle'

task ngetes << {
  SomeUtil.doSomething 'hello'
}


And common.gradle contains :

buildscript {
  dependencies {
     classpath 'group:name:1.0'
  }
}


The task fails.

How to solve this ? Thank you.

-----
http://www.HendyIrawan.com
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/buildscript-cannot-be-put-inside-external-gradle-script-tp3334836p3334836.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