Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ProjectAssetManager's Gradle support #448

Merged

Conversation

peedeeboy
Copy link
Contributor

Hopefully goes some way to fixing #373

A couple of bits that could use further refinement:

  1. 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.

  2. Hard coded to use look at the main sourceset - if user has defined custom sourcesets in their build.gradle these will get ignored

Could do with some testing, inc. making sure nothing in Ant based projects is now broken...

@neph1 neph1 added this to the 3.6 milestone Jan 3, 2023
@peedeeboy
Copy link
Contributor Author

Spotted a couple of typos. Will push a quick update tomorrow

@neph1
Copy link
Contributor

neph1 commented Jan 14, 2023

Tested:
Loading matdefs in gradle project works great! 👍
Sadly, the ant projects seem to have the problem now instead.

Copy link
Contributor

@neph1 neph1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested MatDefs in Ant project: OK
Tested MatDefs in Gradle project: OK

👏

@neph1 neph1 merged commit 9625985 into jMonkeyEngine:master Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants