diff --git a/HeartExamples/build.gradle b/HeartExamples/build.gradle index 58eb864..d3bb179 100644 --- a/HeartExamples/build.gradle +++ b/HeartExamples/build.gradle @@ -14,19 +14,19 @@ if (!hasProperty('mainClass')) { jar.manifest.attributes('Main-Class': 'jme3utilities.test.AppChooser') dependencies { - implementation 'org.apache.commons:commons-exec:1.3' - implementation ('com.github.stephengold:Acorus:2.0.0') { + implementation(libs.commons.exec) + implementation(libs.acorus) { exclude group: 'com.github.stephengold', module: 'Heart' } - runtimeOnly 'org.jmonkeyengine:jme3-desktop:' + jme3Version - runtimeOnly 'org.jmonkeyengine:jme3-effects:' + jme3Version - runtimeOnly 'org.jmonkeyengine:jme3-lwjgl3:' + jme3Version - runtimeOnly 'org.jmonkeyengine:jme3-testdata:' + jme3Version // for Jaime + runtimeOnly(libs.jme3.desktop) + runtimeOnly(libs.jme3.effects) + runtimeOnly(libs.jme3.lwjgl3) + runtimeOnly(libs.jme3.testdata) // for Jaime // HeartExamples doesn't use jme3-jogg nor jme3-plugins // -- they are included solely to avoid warnings from AssetConfig. - runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jme3Version - runtimeOnly 'org.jmonkeyengine:jme3-plugins:' + jme3Version + runtimeOnly(libs.jme3.jogg) + runtimeOnly(libs.jme3.plugins) //implementation 'com.github.stephengold:Heart:' + heartVersion // for published library implementation project(':HeartLibrary') // for local library build diff --git a/HeartLibrary/build.gradle b/HeartLibrary/build.gradle index 50b1f51..d30feaa 100644 --- a/HeartLibrary/build.gradle +++ b/HeartLibrary/build.gradle @@ -19,11 +19,11 @@ ext { } dependencies { - api 'org.jmonkeyengine:jme3-core:' + jme3Version + api(libs.jme3.core) - testImplementation 'junit:junit:4.13.2' - testImplementation 'org.jmonkeyengine:jme3-desktop:' + jme3Version - testRuntimeOnly 'org.jmonkeyengine:jme3-testdata:' + jme3Version + testImplementation(libs.junit) + testImplementation(libs.jme3.desktop) + testImplementation(libs.jme3.testdata) } // Register publishing tasks: diff --git a/J3oDump/build.gradle b/J3oDump/build.gradle index 6f5273f..42692dd 100644 --- a/J3oDump/build.gradle +++ b/J3oDump/build.gradle @@ -24,8 +24,8 @@ tasks.register('j3odump', JavaExec) { } dependencies { - implementation 'org.jmonkeyengine:jme3-desktop:' + jme3Version - implementation 'org.jmonkeyengine:jme3-plugins:' + jme3Version + implementation(libs.jme3.desktop) + implementation(libs.jme3.plugins) //implementation 'com.github.stephengold:Heart:' + heartVersion // for published library implementation project(':HeartLibrary') // for latest sourcecode diff --git a/build.gradle b/build.gradle index 0fd19d6..4f6bb80 100644 --- a/build.gradle +++ b/build.gradle @@ -7,9 +7,6 @@ plugins { ext { jmeTarget = '' // distinguish non-JME libraries built for specific JME releases - // current version of the JMonkeyEngine libraries: - jme3Version = '3.7.0-beta1' - heartSnapshot = '-SNAPSHOT' // for development builds //heartSnapshot = '' // for release builds heartVersion = '9.0.1' + jmeTarget diff --git a/common.gradle b/common.gradle index 913903d..0b5028c 100644 --- a/common.gradle +++ b/common.gradle @@ -9,7 +9,7 @@ java { } checkstyle { - toolVersion '9.3' + toolVersion libs.versions.checkstyle.get() } tasks.withType(JavaCompile).configureEach { // Java compile-time options: diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..3ebbd97 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,19 @@ +## TOML version catalog for the Heart project + +[versions] +checkstyle = "9.3" +jme = "3.7.0-beta1" + +[libraries] +acorus = { module = "com.github.stephengold:Acorus", version = "2.0.0" } +commons-exec = { module = "org.apache.commons:commons-exec", version = "1.3" } +jme3-core = { module = "org.jmonkeyengine:jme3-core", version.ref = "jme" } +jme3-desktop = { module = "org.jmonkeyengine:jme3-desktop", version.ref = "jme" } +jme3-effects = { module = "org.jmonkeyengine:jme3-effects", version.ref = "jme" } +jme3-jogg = { module = "org.jmonkeyengine:jme3-jogg", version.ref = "jme" } +jme3-lwjgl3 = { module = "org.jmonkeyengine:jme3-lwjgl3", version.ref = "jme" } +jme3-plugins = { module = "org.jmonkeyengine:jme3-plugins", version.ref = "jme" } +jme3-testdata = { module = "org.jmonkeyengine:jme3-testdata", version.ref = "jme" } +junit = { module = "junit:junit", version = "4.13.2" } + +[plugins]