diff --git a/common.gradle b/common.gradle index 5961ec84b3..cadabbba0a 100644 --- a/common.gradle +++ b/common.gradle @@ -27,6 +27,7 @@ tasks.withType(JavaCompile) { // compile-time options: ext { lwjgl3Version = '3.3.1' // used in both the jme3-lwjgl3 and jme3-vr build scripts + niftyVersion = '1.4.3' // used in both the jme3-niftygui and jme3-examples build scripts } repositories { diff --git a/jme3-examples/build.gradle b/jme3-examples/build.gradle index fbed866b7d..60912ff1a8 100644 --- a/jme3-examples/build.gradle +++ b/jme3-examples/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation project(':jme3-terrain') implementation project(':jme3-awt-dialogs') runtimeOnly project(':jme3-testdata') + runtimeOnly "com.github.nifty-gui:nifty-examples:${niftyVersion}" // for the "all/intro.xml" example GUI } jar.doFirst{ diff --git a/jme3-niftygui/build.gradle b/jme3-niftygui/build.gradle index 28ed886d01..088cb562ef 100644 --- a/jme3-niftygui/build.gradle +++ b/jme3-niftygui/build.gradle @@ -1,5 +1,3 @@ -def niftyVersion = '1.4.3' - dependencies { api project(':jme3-core') api "com.github.nifty-gui:nifty:${niftyVersion}" diff --git a/jme3-testdata/build.gradle b/jme3-testdata/build.gradle index 3650706333..7d82dc72fb 100644 --- a/jme3-testdata/build.gradle +++ b/jme3-testdata/build.gradle @@ -1,6 +1,2 @@ -def niftyVersion = '1.4.3' - dependencies { - runtimeOnly "com.github.nifty-gui:nifty-examples:$niftyVersion" - runtimeOnly "com.github.nifty-gui:nifty-style-black:$niftyVersion" }