Trying to implement the following with Gradle 2.0:
The idea that the "provided" configuration is used for JAR projects that need access to Servlet API only for compiling purposes but shouldn't be included as transitive dependency at runtime. To keep build DRY (don't repeat yourself) was trying to define this configuration for all projects.
I attached a project that works with Gradle 1.2 but fails with Gradle 2.0 rc2.
Build file 'C:\Users\Kirk\Workspaces\Gradle2\build.gradle' line: 54
* What went wrong:
A problem occurred evaluating root project 'Gradle2'.
> You can't change configuration 'provided' because it is already resolved!
It works with 2.0 only if used in certain contexts, e.g. in subprojects closure
But when used outside it fails:
Perhaps there is a better way now.