Browse Source

resolve issue #1926 (unnecessary dependencies) (#1927)

* buildscript: move def of "niftyVersion" to "common.gradle" (shared between projects)

* jme3-testdata:  rm dependency on "nifty-style-black" (redundant with "jme3-niftygui")

* buildscript: mv "nifty-examples" dependency from "jme3-testdata" to "jme3-examples"
Stephen Gold 2 years ago
parent
commit
8b3d13f3c7
4 changed files with 2 additions and 6 deletions
  1. 1 0
      common.gradle
  2. 1 0
      jme3-examples/build.gradle
  3. 0 2
      jme3-niftygui/build.gradle
  4. 0 4
      jme3-testdata/build.gradle

+ 1 - 0
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 {

+ 1 - 0
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{

+ 0 - 2
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}"

+ 0 - 4
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"
 }