ソースを参照

downgrade or delete unnecessary library dependencies (#1714)

* delete unnecessary library dependencies

* GltfLoaderTest fails (with NPE) without jme3-desktop

* "testRuntime" dependencies are deprecated

* downgrade some dependencies to (test)runtimeOnly

* jme3-terrain:  add back some test dependencies
Stephen Gold 3 年 前
コミット
0c9dbef2bd

+ 0 - 1
jme3-android/build.gradle

@@ -5,7 +5,6 @@ dependencies {
     compileOnly 'androidx.annotation:annotation:1.2.0'
     compileOnly 'androidx.lifecycle:lifecycle-common:2.1.0'
     api project(':jme3-core')
-    api project(':jme3-plugins')
     compileOnly 'android:android'
 }
 

+ 2 - 2
jme3-core/build.gradle

@@ -16,9 +16,9 @@ sourceSets {
 }
 
 dependencies {
-    testRuntime project(':jme3-testdata')
+    testRuntimeOnly project(':jme3-testdata')
     testImplementation project(':jme3-desktop')
-    testRuntime project(':jme3-plugins')
+    testRuntimeOnly project(':jme3-plugins')
 }
 
 task updateVersionPropertiesFile {

+ 1 - 1
jme3-examples/build.gradle

@@ -25,7 +25,7 @@ dependencies {
     implementation project(':jme3-niftygui')
     implementation project(':jme3-plugins')
     implementation project(':jme3-terrain')
-    implementation project(':jme3-testdata')
+    runtimeOnly project(':jme3-testdata')
 }
 
 jar.doFirst{

+ 0 - 1
jme3-ios/build.gradle

@@ -1,4 +1,3 @@
 dependencies {
     api project(':jme3-core')
-    api project(':jme3-plugins')
 }

+ 2 - 2
jme3-jbullet/build.gradle

@@ -19,6 +19,6 @@ dependencies {
     api 'javax.vecmath:vecmath:1.5.2'
     api project(':jme3-core')
     api project(':jme3-terrain')
-    testRuntime project(':jme3-desktop')
-    testRuntime project(':jme3-testdata')
+    testRuntimeOnly project(':jme3-desktop')
+    testRuntimeOnly project(':jme3-testdata')
 }

+ 0 - 1
jme3-lwjgl3/build.gradle

@@ -1,6 +1,5 @@
 dependencies {
     api project(':jme3-core')
-    api project(':jme3-desktop')
 
     api "org.lwjgl:lwjgl:${lwjgl3Version}"
     api "org.lwjgl:lwjgl-glfw:${lwjgl3Version}"

+ 1 - 1
jme3-niftygui/build.gradle

@@ -4,5 +4,5 @@ dependencies {
     api project(':jme3-core')
     api "com.github.nifty-gui:nifty:${niftyVersion}"
     api "com.github.nifty-gui:nifty-default-controls:${niftyVersion}"
-    api "com.github.nifty-gui:nifty-style-black:${niftyVersion}"
+    runtimeOnly "com.github.nifty-gui:nifty-style-black:${niftyVersion}"
 }

+ 1 - 1
jme3-plugins/build.gradle

@@ -12,5 +12,5 @@ sourceSets {
 dependencies {
     api project(':jme3-core')
     api 'com.google.code.gson:gson:2.8.9'
-    testImplementation project(':jme3-desktop')
+    testRuntimeOnly project(':jme3-desktop')
 }

+ 2 - 2
jme3-terrain/build.gradle

@@ -1,9 +1,9 @@
 dependencies {
     api project(':jme3-core')
     testImplementation project(':jme3-core')
-    testImplementation project(':jme3-desktop')
     testImplementation project(':jme3-core').sourceSets.test.output
-    testImplementation project(':jme3-testdata')
+    testRuntimeOnly project(':jme3-desktop')
+    testRuntimeOnly project(':jme3-testdata')
 }
 
 javadoc {