# Gradle 2.0 , Error:You can't change configuration 'provided' because it is already resolved!

**URL:** <https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845>\
**Category:** Old Forum Archive\
**Created:** [September 10, 2014, 7:24pm UTC](https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845 "2014-09-10T19:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roopa\_Chamala](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@Roopa\_Chamala](https://discuss.gradle.org/u/Roopa_Chamala)\
**Post date:** [September 10, 2014, 7:24pm UTC](https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845/1 "2014-09-10T19:24:00Z")

</div>

Im trying to upgrade gradle to 2.0 ,im facing issues with gradle In Build script, its given as

provided ‘javax.enterprise:cdi-api:1.0’ Build fails with an exception

You can’t change configuration ‘provided’ because it is already resolved!

Can any one please help me

---

<div class="post-metadata">

**Author:** ![Schalk\_Cronje](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/schalk_cronje/32/6511_2.png) [@Schalk\_Cronje](https://discuss.gradle.org/u/Schalk_Cronje)\
**Post date:** [September 10, 2014, 9:19pm UTC](https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845/2 "2014-09-10T21:19:00Z")

</div>

Maybe a snippet of the build file would help to provide some context

---

<div class="post-metadata">

**Author:** ![cmcginty](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/cmcginty/32/2209_2.png) [@cmcginty](https://discuss.gradle.org/u/cmcginty)\
**Post date:** [September 11, 2014, 12:12am UTC](https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845/3 "2014-09-11T00:12:00Z")

</div>

Its possible you are trying to change the ‘configuration.provided’ object inside of a ‘doLast’ or ‘doFirst’ block. Also make sure you did not accidentally add a ‘\<\<’ (left-shift) at the top of your task definition when you are trying to configure the task. This is the same as a ‘doLast’.

---

<div class="post-metadata">

**Author:** ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)\
**Post date:** [September 16, 2014, 2:39am UTC](https://discuss.gradle.org/t/gradle-2-0-error-you-cant-change-configuration-provided-because-it-is-already-resolved/5845/4 "2014-09-16T02:39:00Z")

</div>

You could be hitting&nbsp;[GRADLE-3101](https://issues.gradle.org/browse/GRADLE-3101 "Link httpsissuesgradleorgbrowseGRADLE-3101"), also documented in the [Gradle 2.0 release notes](http://www.gradle.org/docs/2.0/release-notes.html#+=-operator-changes-that-typically-affect-configuration-of-eclipse-and-idea-plugin "Link: http://www.gradle.org/docs/2.0/release-notes.html#+=-operator-changes-that-typically-affect-configuration-of-eclipse-and-idea-plugin").&nbsp;  
  
This will happen if you’re using the ‘+=’ operator to modify IDEA scopes, or if you’re using a plugin that does so. (I think some popular 3rd party plugins were using this syntax).
