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 Improvement
    • Status: Resolved Resolved
    • Priority: Major 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

        Kris De Volder (c) 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 ...)
        Kris De Volder (c) made changes -
        Labels tooling-api-blocked
        Kris De Volder (c) made changes -
        Assignee Kris De Volder [ kdvolder ]
        Kris De Volder (c) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Labels tooling-api-blocked
        Fix Version/s 3.0.0.M2 [ 11806 ]
        Resolution Complete [ 13 ]
        Trevor Marshall (c) made changes -
        Workflow jira [ 37821 ] jira with Pivotal Tracker [ 67260 ]

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Mauro Molinari
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: