Skip to content

Commit

Permalink
buildscripts: move library/plugin version information to a catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed May 20, 2024
1 parent fc723f9 commit 2562c70
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 19 deletions.
17 changes: 8 additions & 9 deletions AcorusExamples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,17 @@ if (!hasProperty('mainClass')) {
jar.manifest.attributes('Main-Class': 'jme3utilities.ui.test.AppChooser')

dependencies {
implementation 'org.apache.commons:commons-exec:1.3'

implementation heartCoordinates
runtimeOnly 'org.jmonkeyengine:jme3-awt-dialogs:' + jme3Version
implementation 'org.jmonkeyengine:jme3-desktop:' + jme3Version
implementation 'org.jmonkeyengine:jme3-lwjgl3:' + jme3Version
runtimeOnly 'org.jmonkeyengine:jme3-testdata:' + jme3Version // for Jaime
implementation(libs.commons.exec)
implementation(libs.heart)
runtimeOnly(libs.jme3.awt.dialogs)
implementation(libs.jme3.desktop)
implementation(libs.jme3.lwjgl3)
runtimeOnly(libs.jme3.testdata) // for Jaime

// AcorusExamples 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:Acorus:' + acorusVersion // for published library
implementation project(':AcorusLibrary') // for local library build
Expand Down
4 changes: 2 additions & 2 deletions AcorusLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ ext {
}

dependencies {
api heartCoordinates
implementation 'org.jmonkeyengine:jme3-desktop:' + jme3Version // for VideoRecorderAppState
api(libs.heart)
implementation(libs.jme3.desktop) // for VideoRecorderAppState
}

// Register publishing tasks:
Expand Down
7 changes: 0 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ plugins {

ext {
jmeTarget = '' // distinguish non-JME libraries built for specific JME releases

// current version of the JMonkeyEngine libraries:
jme3Version = '3.7.0-beta1'

// module coordinates of external dependencies:
heartCoordinates = 'com.github.stephengold:Heart:9.0.0' + jmeTarget

acorusSnapshot = '-SNAPSHOT' // for development builds
//acorusSnapshot = '' // for release builds
acorusVersion = '2.0.1' + jmeTarget
Expand Down
2 changes: 1 addition & 1 deletion common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ java {
}

checkstyle {
toolVersion '9.3'
toolVersion libs.versions.checkstyle.get()
}

tasks.withType(JavaCompile).configureEach { // Java compile-time options:
Expand Down
22 changes: 22 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## catalog of libraries and plugins used to build the Acorus project

[versions]

checkstyle = "9.3"
jme = "3.7.0-beta1"

[libraries]

commons-exec = "org.apache.commons:commons-exec:1.3"
heart = "com.github.stephengold:Heart:9.0.0"
jme3-awt-dialogs = { module = "org.jmonkeyengine:jme3-awt-dialogs", version.ref = "jme" }
jme3-desktop = { module = "org.jmonkeyengine:jme3-desktop", version.ref = "jme" }
jme3-heart = { module = "org.jmonkeyengine:jme3-heart", 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" }

[bundles]

[plugins]

0 comments on commit 2562c70

Please sign in to comment.