Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3101

Changes to IDEA scopes mapping can trigger dependency resolving

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-rc-1
    • Fix Version/s: 2.0-rc-1
    • Known Issue Of:
      2.0

      Description

      Modifications to IDEA scopes using += operator can cause dependency resolving for configuration and the configuration cannot be changed after that. It means script like this:

      apply plugin: 'java'
      apply plugin: 'idea'
      
      configurations {
        provided
        provided.extendsFrom(compile)
      }
      
      idea {
        module {
          scopes.PROVIDED.plus += configurations.provided
        }
      }
      dependencies {
          provided '...'
      }
      

      will fail.

      Possible ways how to work around this is to avoid += operator or to push this block towards the end of build script.

        Attachments

          Activity

            People

            Assignee:
            radimk Radim Kubacki
            Reporter:
            radimk Radim Kubacki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: