Improve ProjectAssetManager's Gradle support #448
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hopefully goes some way to fixing #373
A couple of bits that could use further refinement:
When you first create a new Gradle JME project, NB will prompt you for a priming build - due to changes in NB's Gradle API in latest version, because our Gradle project is created by unziping a file rather than using NB's Gradle API, it is untrusted at this stage and the priming build doesn't run. This means the user need to run Gradle build again manually before resources will be loaded off the Gradle dependencies - the real fix for this needs to be in the Gradle template.
Hard coded to use look at the
main
sourceset - if user has defined custom sourcesets in theirbuild.gradle
these will get ignoredCould do with some testing, inc. making sure nothing in Ant based projects is now broken...