I'm working on a java project that uses an old gradle version (1.12). Now I'm upgrading gradle to a newer version (4.4) to be able to use Kotlin. I've been resolving the dependencies problems and everything seems to be ok excepting a property called transitive which appear to be valid on version 1.12.
This is the piece of code giving me troubles:
dependencies {
compile project(':core') {
transitive = false //Here
}
// bunch of dependencies below
}
Any ideas of how to get the same result in a newer version of Gradle?
Try this..
compile(project(:your-library-name)) { transitive=true }
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.