I am trying to declare the dependencies
in my gradle project using the technique described in this answer.
However when I do so I get this error:
In your top level settings.gradle
, include your subproject:
include 'subproject'
In your top level build.gradle
define your ext properties:
ext.libraries = [junit: 'junit:junit:4.10']
it does not have to be a map, if you're using just 1 value, but I'm sticking with your formatting.
To use this in your subproject build.gradle
:
dependencies{
testCompile libraries.junit
}