In my top level build.gradle
project I am attempting to add extra properties
using the following:
project.ext.libraries = [
junit: 'junit:junit:4.10'
]
I then attempt to reference them in a lower level build.gradle
but get this error:
testCompile([
project.libraries.junit
])
However I get this error:
"Could not find property "libraries" for project
Do I need to add anything else to my Gradle code to get this to work?