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

Projects using only 'java-base' plugin get an empty classpath in tooling API

    XMLWordPrintable

    Details

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

      Description

      I am trying to setup something that lets users more easily create new Gradle projects in STS.
      To this end I allow the user to create a new project containing one of the sample projects from RC1 distribution.

      When using the samples/java/base sample project however, the resulting project has compile errors.
      The reason for this problem appears to be that the classpath for this sample project as returned by the tooling API contains no entries.

      When I modify the sample project to

      apply plugin: 'java'

      instead of

      apply plugin: 'java-base'

      Then the classpath is populated properly.

      I'm not sure how serious a problem this is. I imagine most people will use 'java' plugin rather than just 'java-base' so are not likely to hit this problem.

      Perhaps the most serious problem here, is that a sample project bundled with the official gradle distribution does not import/work correctly in the IDE.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kdvolder Kris De Volder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: