I just tried to add this functionality to JME but I am a newbie with both GitHub and Gradle, and therefore have a few questions.
What I did is:
a. I forked jmonkeyengine and created the branch ‘custom-blend-func’.
b. Switch to the branch using ‘git checkout custom-blend-func’.
c. I wanted to test if it works at all, so I did a ‘gradle build’ expecting the same jars that come with the download, but now the folder structure is messed up with numerous ‘build’ folders. From my point of view I can never ever make a pull request for the crap that I created. Also, when I switch back to master (using ‘git checkout master’) the build folders remain. It is not clear to me how I can work with my fork / branch.
Maybe you can guide me with a basic workflow.
How do you guys import your branch into the SDK to make changes?
How do you compile it for test runs?
And finally, how do you make the pull request when you’re done?
It depends on what you want to achieve.
Do you want to edit the engine Inside of the sdk?
If so you can simply open the Java Files with it and edit them.
If you use the gradle plugin you could even be able to build it and all but that’s experimental.
If you want to test the New engine Inside of the sdk as If it had been officially bundled, see the sdk’s build_engine.sh. basically you call gradlew install so that they are added to a local maven repository where the sdk can pick them up.