-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (75 loc) · 2.83 KB
/
build.gradle
File metadata and controls
90 lines (75 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'java-library'
}
description = 'jme3-ai-examples'
// select one source-code (JDK) option
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
// select one version of the Engine:
ext.jmeVersion = '3.8.1-stable'
gradle.projectsEvaluated {
tasks.withType(JavaCompile).configureEach { // compile-time options:
options.compilerArgs << '-Xdiags:verbose'
options.compilerArgs << '-Xlint:unchecked'
//options.deprecation = true
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec).tap {
configureEach { // runtime options:
args = []
classpath sourceSets.main.runtimeClasspath
//debug true
//enableAssertions true
//jvmArgs '-verbose:gc'
//jvmArgs '-Xbatch'
//jvmArgs '-Xms512m', '-Xmx512m'
//jvmArgs '-XX:+PrintCompilation'
//jvmArgs '-XX:+UseConcMarkSweepGC'
jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
}
}
}
repositories {
mavenCentral()
}
dependencies {
// jMonkeyEngine
implementation 'org.jmonkeyengine:jme3-core:' + jmeVersion
implementation 'org.jmonkeyengine:jme3-desktop:' + jmeVersion
implementation 'org.jmonkeyengine:jme3-effects:' + jmeVersion
implementation 'org.jmonkeyengine:jme3-terrain:' + jmeVersion
runtimeOnly 'org.jmonkeyengine:jme3-awt-dialogs:' + jmeVersion
runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jmeVersion
runtimeOnly 'org.jmonkeyengine:jme3-plugins:' + jmeVersion
// Physics Engine
implementation 'com.github.stephengold:Minie:9.0.1+big4'
// select one version of LWJGL
//runtimeOnly 'org.jmonkeyengine:jme3-lwjgl:' + jmeVersion // LWJGL 2.x
runtimeOnly 'org.jmonkeyengine:jme3-lwjgl3:' + jmeVersion // LWJGL 3.x
runtimeOnly 'org.jmonkeyengine:jme3-testdata:3.4.0-alpha6'
// libraries related to the Lemur GUI and Groovy:
implementation 'com.simsilica:lemur:1.16.0'
implementation 'com.simsilica:lemur-props:1.2.0'
implementation 'com.simsilica:lemur-proto:1.13.0'
runtimeOnly 'org.codehaus.groovy:groovy-jsr223:3.0.16'
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation 'org.apache.commons:commons-lang3:3.18.0'
api files("libs/jME3-ai.jar")
api files("libs/cai-nmgen-0.2.0.jar")
}
// cleanup tasks
clean.dependsOn('cleanDLLs', 'cleanDyLibs', 'cleanLogs', 'cleanSOs')
tasks.register('cleanDLLs', Delete) {
delete fileTree(dir: '.', include: '*.dll')
}
tasks.register('cleanDyLibs', Delete) {
delete fileTree(dir: '.', include: '*.dylib')
}
tasks.register('cleanLogs', Delete) {
delete fileTree(dir: '.', include: 'hs_err_pid*.log')
}
tasks.register('cleanSOs', Delete) {
delete fileTree(dir: '.', include: '*.so')
}