I have multiple project gradle build and I am trying to externalize dependencies version via gradle.properties. Unfortunately child project can not find properties in parent gradle.properties
So in parent gradle.properties I have :
SPRING_VERSION=3.2.0.RELEASE
in parent build.gradle I have
dependencies {
compile "org.springframework:spring-webmvc:$SPRING_VERSION"
...
and this works fine. But in the child project same thing cause error :
Could not resolve all dependencies for configuration
Could not find org.springframework:spring-context-support:$SPRING_VERSION.
If I hardcode the version project builds fine.
also in parent file I have settings.gradle which specifies :
include 'projectA','projectB','projectC'
project structure
root
|
\ buildSRC
\ projectA
|
\ build.gradle
\ projectB (build script in parent build.gradle)
\ projectC (build script in parent build.gradle)
|
|
\ build.gradle
\ gradle.properties
\ settings.gradle
thanks for help
w