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

Tooling API: Expose information about buildSrc (if any)

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.4
    • Fix Version/s: None

      Description

      Gradle references says the following:

      When you run Gradle, it checks for the existence of a directory called buildSrc. Gradle then automatically compiles and tests this code and puts it in the classpath of your build script. You don't need to provide any further instruction.

      It looks like an implicitly configured gradle sub-project then. However, tooling api doesn't expose any information about it. Looks like a bug.

      Implied by the ticket IDEA-98930

        Activity

        Hide
        rjernst Ryan Ernst added a comment -

        Any comment here from gradle folks? This makes developing a large project with buildSrc a pain. Either it is added as a module (which causes warnings/errors in the editor because each class shows up twice, once through the implicit buildSrc dependency, and another in the "extra" module), or it must be setup as a completely separate intellij workspace. I would assume if the tooling api exposed information about buildSrc, it could be setup in intellij so editing could take place without errors, in the same workspace.

        Show
        rjernst Ryan Ernst added a comment - Any comment here from gradle folks? This makes developing a large project with buildSrc a pain. Either it is added as a module (which causes warnings/errors in the editor because each class shows up twice, once through the implicit buildSrc dependency, and another in the "extra" module), or it must be setup as a completely separate intellij workspace. I would assume if the tooling api exposed information about buildSrc, it could be setup in intellij so editing could take place without errors, in the same workspace.

          People

          • Assignee:
            Unassigned
            Reporter:
            denis.zhdanov Denis Zhdanov
          • Votes:
            10 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:

              Development