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

remapping subproject location in settings.gradle prevent working from inside its folder

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.8-rc-1

      Description

      Given the following settings.gradle:

      include 'project1'
      include 'project2'
      project(':project2').projectDir = new File('libs/project2')

      Doing any gradle command from the libs/project2 folder fails to evaluate all projects defined in settings.gradle.

      Gradle basically considers project2 to be a single project setup, which makes dependency on other subprojects broken unless the command is ran from the root folder.

      Is this expected? Is there no way to have a hierarchical folder structure that does not map to a hierarchical project structure.

      I don't want "libs" to be a project.

        Attachments

          Activity

            People

            Assignee:
            breskeby René Gröschke
            Reporter:
            ducrohet Xavier Ducrohet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: