Gradle JPI plugin doesn't work with idea plugin

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: gradle-jpi-plugin
    • None
    • Environment:
      Gradle 3.3.1

      When using the Gradle JPI plugin in our project, I see errors when also applying the idea plugin:

      :*************:ideaModule (Thread[main,5,main]) completed.
      Took 1.104 secs.
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':*************:ideaModule'.
      > Cannot change dependencies of configuration ':*************:testCompile'after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.
      

      Because of some constraints with our environment, we have to use the idea plugin to use IntelliJ.

      I've submitted a PR that addresses the issue at: https://github.com/jenkinsci/gradle-jpi-plugin/pull/86

            Assignee:
            Daniel Spilker
            Reporter:
            Ryan Pruden
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: