How to import nifty gui in gradle?

I need all dependencies for the start.

implementation "org.jmonkeyengine:jme3-niftygui:$jmonkeyengine_version"

Given $jmonkeyengine_version you have specified. If not, just replace that with the version of jME you are using.

1 Like

I believe Sasha will also need styling info at runtime:

    runtimeOnly 'com.github.nifty-gui:nifty-style-black:1.4.3'

These I think come from jME. They are the dependencies of org.jmonkeyengine:jme3-niftygui. Thus they will come without specifying them separately. My projects never needed that.

Unless of course one wants to use Nifty without the jME package. Then all those are needed, styles and the main package.