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

A dependecy on sourceset.classes breaks GradleDependencies classpath container in Eclipse/STS

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-milestone-3
    • Fix Version/s: None

      Description

      Problem manifests itself in this project http://static.springsource.org/spring-security/site/source.html

      When this project is imported into STS Gradle tooling, it produces an invalid classpath for some of the subprojects.
      The error is as follows:

      msg :The container 'Gradle Dependencies' references non existing library '.../spring-security/core/build/classes/test' project: spring-security-web

      This message seems to be caused by the following lines in the projects buid file:

      dependencies {
          ...
          testCompile project(':spring-security-core').sourceSets.test.classes,
                      ...
      }
      

      Workaround, replace the above with

      dependencies

      { ... testCompile project(':spring-security-core'), ... }

        Issue Links

          Activity

          kdvolder Kris De Volder created issue -
          adammurdoch Adam Murdoch made changes -
          Field Original Value New Value
          Link This issue Duplicated by GRADLE-1116 [ GRADLE-1116 ]
          adammurdoch Adam Murdoch made changes -
          Fix Version/s 1.0-rc-1 [ 10062 ]
          ldaley Luke Daley made changes -
          Fix Version/s 1.1 [ 10360 ]
          Fix Version/s 1.0-rc-1 [ 10062 ]
          adammurdoch Adam Murdoch made changes -
          Fix Version/s 1.1 [ 10360 ]
          ldaley Luke Daley made changes -
          Workflow jira with pivotal tracker [ 14922 ] jira with pivotal tracker (no resolved, only closed) [ 16625 ]
          ldaley Luke Daley made changes -
          Workflow jira with pivotal tracker (no resolved, only closed) [ 16625 ] Copy of jira with pivotal tracker (no closed, only resolved) [ 19373 ]
          oehme Stefan Oehme made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              kdvolder Kris De Volder
            • Votes:
              4 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development