Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2834

Detect Gradle project dependencies to other Gradle projects located in workspace and ...

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0.RELEASE
    • Fix Version/s: 3.6.3.RELEASE
    • Component/s: GRADLE
    • Labels:
      None

      Description

      This a variant of issue STS-2405 for project dependencies between
      Gradle projects (rather than between maven and Gradle projects).

      Another variant is STS-2836

        Activity

        Hide
        Stephen Haberman added a comment -

        Great to hear! Thanks for the update.

        Show
        Stephen Haberman added a comment - Great to hear! Thanks for the update.
        Hide
        Vadim Lotarev added a comment -

        I've just installed 3.6.3 and do not see any changes regarding to this issue ... There are no any additional properties (like remap to maven project). Also all my workspace projects are not linked as was before. Should I do something special (re-create projects, open/close, etc) to have this feature worked?

        Show
        Vadim Lotarev added a comment - I've just installed 3.6.3 and do not see any changes regarding to this issue ... There are no any additional properties (like remap to maven project). Also all my workspace projects are not linked as was before. Should I do something special (re-create projects, open/close, etc) to have this feature worked?
        Hide
        Kris De Volder (c) added a comment -

        The feature has to be enabled in the Gradle preferences page. Access via "Window >> Preferences >> Gradle".

        If you are not seeing the "remap jars to Gradle projects" there then maybe double check that version of the Gradle plugins is indeed 3.6.3.
        Maybe something went wrong during the upgrade and you are still using an older version.

        One way to check version is via Eclipse's "Plugin Registry" view. search for plugins like "org.springsource.ide.eclipse.gradle.core" and check version.

        Show
        Kris De Volder (c) added a comment - The feature has to be enabled in the Gradle preferences page. Access via "Window >> Preferences >> Gradle". If you are not seeing the "remap jars to Gradle projects" there then maybe double check that version of the Gradle plugins is indeed 3.6.3. Maybe something went wrong during the upgrade and you are still using an older version. One way to check version is via Eclipse's "Plugin Registry" view. search for plugins like "org.springsource.ide.eclipse.gradle.core" and check version.
        Hide
        Matei D added a comment -

        Hi guys,

        Could you please post a small example on how to actually make this feature work (like a minimal tutorial in which you start with an empty workspace)?
        I have tried a few times but failed.

        I am trying to have this feature working in the scenario in which I create 2 new Gradle projects (let's call them A and B) and and make project B depend on project A, without committing them to any repository - strictly local gradle projects known only to Eclipse / STS.

        I have tried both version 3.6.3 and 3.6.4 with no luck.

        Thank you in advance!

        Show
        Matei D added a comment - Hi guys, Could you please post a small example on how to actually make this feature work (like a minimal tutorial in which you start with an empty workspace)? I have tried a few times but failed. I am trying to have this feature working in the scenario in which I create 2 new Gradle projects (let's call them A and B) and and make project B depend on project A, without committing them to any repository - strictly local gradle projects known only to Eclipse / STS. I have tried both version 3.6.3 and 3.6.4 with no luck. Thank you in advance!
        Hide
        Kris De Volder (c) added a comment -

        > without committing them to any repository - strictly local gradle projects known only to Eclipse / STS.

        I don't think that will work. You have to publish a jar at least once to some repository for it to be resolveable. I've explained it in detail here:
        http://stackoverflow.com/questions/29532878/eclipse-gradle-workspace-resolution-between-gradle-projects-not-working/29634854#29634854

        Show
        Kris De Volder (c) added a comment - > without committing them to any repository - strictly local gradle projects known only to Eclipse / STS. I don't think that will work. You have to publish a jar at least once to some repository for it to be resolveable. I've explained it in detail here: http://stackoverflow.com/questions/29532878/eclipse-gradle-workspace-resolution-between-gradle-projects-not-working/29634854#29634854

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Kris De Volder (c)
          • Votes:
            39 Vote for this issue
            Watchers:
            37 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: