Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-2213

STS should allow more parameters for Gradle builds / task execution to be controlled via the task UI (JRE home, system properties, environment parameters, Java options ...)

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.8.0.RELEASE
    • Fix Version/s: 3.0.0.M2
    • Component/s: GRADLE
    • Labels:
      None

      Description

      I don't know how hard it would be, but I miss the possibility to run Gradle in a different JRE when configuring a Gradle Build launch configuration, just like it is possible with an Ant Build.

      Benefits:

      • the possibility to specify the JRE to use (see "JRE" tab of an Ant Build launch configuration)
      • the possibility to compose the classpath for the Gradle build script (see "Classpath" tab of an Ant Build launch configuration)
      • (most important) the possibility to set environment variables (see "Environment" tab of an Ant Build launch configuration) to be made available to Gradle when running the build script

      The last thing would be extremely useful to me: in fact, right now the Gradle daemon says that I have no JAVA_HOME set (because I haven't this environment variable set at the OS level) so if I run a Gradle task that needs to compile Java code from Eclipse, I get an error because a JDK cannot be found. So, I'm forced to set this environment variable at the OS level or at least to make it available to the whole Eclipse IDE, with possible side effects on other components that may use that environment variable value.

        Activity

        mauromol Mauro Molinari created issue -
        kdvolder Kris De Volder made changes -
        Field Original Value New Value
        Summary Enable to run Gradle in a separate JRE STS should allow more parameters for Gradle builds / task execution to be controlled via the task UI (JRE home, system properties, environment parameters, Java options ...)
        kdvolder Kris De Volder made changes -
        Labels tooling-api-blocked
        kdvolder Kris De Volder made changes -
        Assignee Kris De Volder [ kdvolder ]
        kdvolder Kris De Volder made changes -
        Resolution Complete [ 13 ]
        Fix Version/s 3.0.0.M2 [ 11806 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Labels tooling-api-blocked
        tmarshall Trevor Marshall made changes -
        Workflow jira [ 37821 ] jira with Pivotal Tracker [ 67260 ]
        tmarshall Trevor Marshall made changes -
        Project Import Thu Apr 06 15:50:53 UTC 2017 [ 1491493853826 ]

          People

          • Assignee:
            kdvolder Kris De Volder
            Reporter:
            mauromol Mauro Molinari
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: