Reputation: 3930
I have project with 20+ subprojects:
war {
dependencies {
runtime project(':project1')
runtime project(':project2')
...
runtime project(':project20')
}
I would like to avoid duplication of project names here and in settings.gradle. How can I add dependencies on subprojects programmatically?
Upvotes: 0
Views: 440
Reputation: 38629
You mean like this?
war {
dependencies {
subprojects.each { runtime it }
}
}
Upvotes: 1