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 6801193 commit 59e5ac3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
16 changes: 8 additions & 8 deletions WesExamples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ plugins {
}

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

implementation heartCoordinates
implementation 'com.github.stephengold:Acorus:2.0.0'
runtimeOnly 'org.jmonkeyengine:jme3-desktop:' + jme3Version
implementation 'org.jmonkeyengine:jme3-lwjgl3:' + jme3Version
implementation 'org.jmonkeyengine:jme3-plugins:' + jme3Version
runtimeOnly 'org.jmonkeyengine:jme3-testdata:' + jme3Version
implementation(libs.heart)
implementation(libs.acorus)
runtimeOnly(libs.jme3.desktop)
implementation(libs.jme3.lwjgl3)
implementation(libs.jme3.plugins)
runtimeOnly(libs.jme3.testdata)

// WesExamples doesn't use jme3-jogg
// -- it is included solely to avoid warnings from AssetConfig.
runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jme3Version
runtimeOnly(libs.jme3.jogg)

//implementation 'com.github.stephengold:Wes' + wesVersion // for published library
implementation project(':WesLibrary') // for latest sourcecode
Expand Down
2 changes: 1 addition & 1 deletion WesLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ext {
}

dependencies {
api heartCoordinates
api(libs.heart)
}

// 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 @@ -2,13 +2,6 @@

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

wesSnapshot = '-SNAPSHOT' // for development builds
//wesSnapshot = '' // for release builds
wesVersion = '0.8.1' + jmeTarget + wesSnapshot
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
21 changes: 21 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## catalog of libraries and plugins used to build the Wes project

[versions]

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

[libraries]

acorus = "com.github.stephengold:Acorus:2.0.0"
commons-exec = "org.apache.commons:commons-exec:1.3"
heart = "com.github.stephengold:Heart:9.0.0"
jme3-desktop = { module = "org.jmonkeyengine:jme3-desktop", 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 59e5ac3

Please sign in to comment.