In Maven you define profiles with it’s own dependencies, plugins etc. It would be very useful to have a specific DSL in Gradle to support this as well. Something like:
profiles {
dev {
dependencies {
runtime('org.hibernate:hibernate:3.0.5')
}
}
test {
// some other deps
}
}
and the run gradle with -P test option.
I looked at JIRA but did not see any ticket yet. Maybe good to add it?