Open aplatypus opened 7 years ago
I don't think there is support anywhere for environmental variable expansion. So, if I add support, I will have to review everything, otherwise it would confuse people why it works in random places. Also, my preferred format would be: ${env.GRADLE_HOME} because that is easier for me to parse. I would probably save strings as is and would not expand such variables immediately.
The ~/.gradle is a lie. It was just convenient to describe it this way (I expect most who cares to know what is meant by that). Anyway, usually the default is just whatever Gradle uses as default. If I need its value for something else than passing to Gradle, then it defaults to Paths.get(System.getProperty("user.home"), ".gradle")
.
I will have a look at this issue sometime this week.
Actually, I have just realized that the very same thing I have mentioned works for task definitions (not for what you need though).
I have done this for the location only but will review what else do I need to update. Can you build the plugin and try if it works for you?
How do you build the plugin? Do I need to download this project?
If you have checked out the source code from this repository, you should be able to simply open the project in NB and build it as any other project in NB (which will produce the nbm). I recommened you to read the wiki page for more convenient way to try the plugin (you should have a version of NB installed on your system with Groovy support for convenience).
Good afternoon,
On the Gradle panel in the Miscellaneous Options tab, under "Gradle Installation" there is a field called:
The plugin ignores:
When you click to change there are 4 mutually exclusive alternatives
All my scripts and short-cuts are set-up to use the GRADLE_HOME setting. I explicitly do not want to us the wrapper.
Under #4 "Use given local folder" -- I tried:
With very annoying results.
Enhancement:
The default for $GRADLE_USER_HOME is reported as: "~./gradle" which might make sense on Mac and Linux. On windows this appears to throw-up the Documents psudo-folder.
In summary, the Gradle framework has good tooling using these variables I prefer to put my other options into the appropriate config files in $GRADLE_USER_HOME. At the least I feel the Gradle Plugin ought to support these basic attrributes of the Gradle build paradigm. It is fine to add value with the other options in the set-up. But I feel the basics should be provided for as well.
many thanks.