From 2def33877d10e99896f7f7a65a7a5a466901dbfd Mon Sep 17 00:00:00 2001 From: wil Date: Tue, 20 Aug 2024 17:40:52 -0600 Subject: [PATCH] GSON global version (Gradle) --- common.gradle | 3 ++- jme3-plugins-json-gson/build.gradle | 6 +----- jme3-plugins/build.gradle | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/common.gradle b/common.gradle index d332cba6d7..87b7c04d07 100644 --- a/common.gradle +++ b/common.gradle @@ -31,7 +31,8 @@ tasks.withType(JavaCompile) { // compile-time options: ext { lwjgl3Version = '3.3.3' // 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 + niftyVersion = '1.4.3' // used in both the jme3-niftygui and jme3-examples build scripts + gsonVersion = '2.9.1' // used in both the jme3-plugins and jme3-plugins-json-gson build scripts } repositories { diff --git a/jme3-plugins-json-gson/build.gradle b/jme3-plugins-json-gson/build.gradle index 6d22f7a774..7a86e99a29 100644 --- a/jme3-plugins-json-gson/build.gradle +++ b/jme3-plugins-json-gson/build.gradle @@ -1,16 +1,12 @@ sourceSets { main { java { - srcDir 'src/main/java' - } } } dependencies { - api project(':jme3-plugins-json') - api 'com.google.code.gson:gson:2.9.1' - + api "com.google.code.gson:gson:${gsonVersion}" } diff --git a/jme3-plugins/build.gradle b/jme3-plugins/build.gradle index b88f0a64fd..f75dd7f702 100644 --- a/jme3-plugins/build.gradle +++ b/jme3-plugins/build.gradle @@ -11,6 +11,6 @@ sourceSets { dependencies { api project(':jme3-core') - api 'com.google.code.gson:gson:2.9.1' + api "com.google.code.gson:gson:${gsonVersion}" testRuntimeOnly project(':jme3-desktop') }