Skip to content

Commit b478101

Browse files
committed
build.gradle: upgrade libs
- jME 3.8.1-stable - Minie 9.0.1-big4 - commons-lang3 3.18.0
1 parent 3b9efe2 commit b478101

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

build.gradle

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,33 @@ sourceCompatibility = JavaVersion.VERSION_11
1212
targetCompatibility = JavaVersion.VERSION_11
1313

1414
ext {
15-
jmeVersion = '3.6.1-stable'
15+
jmeVersion = '3.8.1-stable'
1616
recast4jVersion = '1.2.8'
1717

1818
artifact = 'jme-navmesh-ai'
1919
baseName = "${artifact}-${version}" // for artifacts
2020
}
2121

2222
gradle.projectsEvaluated {
23-
tasks.withType(JavaCompile) { // compile-time options:
23+
tasks.withType(JavaCompile).configureEach { // compile-time options:
2424
options.compilerArgs << '-Xdiags:verbose'
2525
options.compilerArgs << '-Xlint:unchecked'
2626
//options.deprecation = true
2727
options.encoding = 'UTF-8'
2828
}
29-
tasks.withType(JavaExec) { // runtime options:
30-
args = []
31-
classpath sourceSets.main.runtimeClasspath
32-
//debug true
33-
//enableAssertions true
34-
//jvmArgs '-verbose:gc'
35-
//jvmArgs '-Xbatch'
36-
//jvmArgs '-Xms512m', '-Xmx512m'
37-
//jvmArgs '-XX:+PrintCompilation'
38-
//jvmArgs '-XX:+UseConcMarkSweepGC'
39-
jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
29+
tasks.withType(JavaExec).tap {
30+
configureEach { // runtime options:
31+
args = []
32+
classpath sourceSets.main.runtimeClasspath
33+
//debug true
34+
//enableAssertions true
35+
//jvmArgs '-verbose:gc'
36+
//jvmArgs '-Xbatch'
37+
//jvmArgs '-Xms512m', '-Xmx512m'
38+
//jvmArgs '-XX:+PrintCompilation'
39+
//jvmArgs '-XX:+UseConcMarkSweepGC'
40+
jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
41+
}
4042
}
4143
}
4244

@@ -46,7 +48,7 @@ repositories {
4648

4749
dependencies {
4850
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
49-
implementation 'org.apache.commons:commons-lang3:3.15.0'
51+
implementation 'org.apache.commons:commons-lang3:3.18.0'
5052

5153
// jMonkeyEngine
5254
implementation 'org.jmonkeyengine:jme3-core:' + jmeVersion
@@ -56,14 +58,14 @@ dependencies {
5658
runtimeOnly 'org.jmonkeyengine:jme3-awt-dialogs:' + jmeVersion // JMonkeyEngine v3.6 only!
5759

5860
// Physics
59-
implementation 'com.github.stephengold:Minie:8.2.0+big4'
61+
implementation 'com.github.stephengold:Minie:9.0.1+big4'
6062

6163
// select one version of LWJGL
6264
//runtimeOnly 'org.jmonkeyengine:jme3-lwjgl:' + jmeVersion // LWJGL 2.x
6365
runtimeOnly 'org.jmonkeyengine:jme3-lwjgl3:' + jmeVersion // LWJGL 3.x
6466

6567
runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jmeVersion
66-
implementation 'org.jmonkeyengine:jme3-plugins:' + jmeVersion
68+
runtimeOnly 'org.jmonkeyengine:jme3-plugins:' + jmeVersion
6769
//runtimeOnly 'org.jmonkeyengine:jme3-testdata:' + jmeVersion
6870

6971
// recast4j
@@ -87,16 +89,17 @@ dependencies {
8789

8890
// cleanup tasks
8991
clean.dependsOn('cleanDLLs', 'cleanDyLibs', 'cleanLogs', 'cleanSOs')
90-
task cleanDLLs(type: Delete) {
92+
93+
tasks.register('cleanDLLs', Delete) {
9194
delete fileTree(dir: '.', include: '*.dll')
9295
}
93-
task cleanDyLibs(type: Delete) {
96+
tasks.register('cleanDyLibs', Delete) {
9497
delete fileTree(dir: '.', include: '*.dylib')
9598
}
96-
task cleanLogs(type: Delete) {
99+
tasks.register('cleanLogs', Delete) {
97100
delete fileTree(dir: '.', include: 'hs_err_pid*.log')
98101
}
99-
task cleanSOs(type: Delete) {
102+
tasks.register('cleanSOs', Delete) {
100103
delete fileTree(dir: '.', include: '*.so')
101104
}
102105

0 commit comments

Comments
 (0)