-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
90 lines (77 loc) · 3.01 KB
/
build.gradle
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 = 'TechDemo'
// select one source-code (JDK) option
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
// select one version of the Engine:
//ext.jmeVersion = '3.6.1-stable' // from mavenCentral
ext.jmeVersion = '3.7.0-SNAPSHOT' // from mavenLocal or SonaType
gradle.projectsEvaluated {
tasks.withType(JavaCompile) { // compile-time options:
options.compilerArgs << '-Xdiags:verbose'
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec) { // 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()
// to find public snapshots of libraries
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
configurations.all {
// to disable caching of snapshots
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
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
//implementation 'com.github.stephengold:Minie:8.1.0+big4'
implementation 'com.github.stephengold:Heart:9.1.0'
implementation 'com.github.stephengold:SkyControl:1.0.5'
// select one version of LWJGL
runtimeOnly 'org.jmonkeyengine:jme3-lwjgl3:' + jmeVersion // LWJGL 3.x
runtimeOnly 'org.jmonkeyengine:jme3-jogg:' + jmeVersion
runtimeOnly 'org.jmonkeyengine:jme3-plugins:' + jmeVersion
runtimeOnly 'org.jmonkeyengine:jme3-testdata:3.4.0-alpha6'
// Logging
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'org.slf4j:slf4j-simple:1.7.32'
// 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'
}
// cleanup tasks
clean.dependsOn('cleanDLLs', 'cleanDyLibs', 'cleanLogs', 'cleanSOs')
task cleanDLLs(type: Delete) {
delete fileTree(dir: '.', include: '*.dll')
}
task cleanDyLibs(type: Delete) {
delete fileTree(dir: '.', include: '*.dylib')
}
task cleanLogs(type: Delete) {
delete fileTree(dir: '.', include: 'hs_err_pid*.log')
}
task cleanSOs(type: Delete) {
delete fileTree(dir: '.', include: '*.so')
}