I have one real issue with defining order of dependencies, eg. I have a gradle dependency which looks like this:
configurations {
defaults
configs
}
task extractDefaults(type: Copy) {
from { configurations.defaults.collect { it.isDirectory() ? it : zipTree(it) } }
into "$buildDir/defaults/"
}
in other file i have
dependencies {
compile project(':SOME_PROJECT')
defaults "OTHER_PROJECT_1:${VER}@zip"
defaults project(':OTHER_PROJECT_2').files('WEB')
}
in no matter in which order i will add defaults dependencies all files are overritten by "OTHER_PROJECT:${VER}@zip". I have multi project build. My question is how can i define defauts to be somehow ordered list (the order is specified by order of addition)?