-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
95 lines (82 loc) · 3.39 KB
/
build.gradle
File metadata and controls
95 lines (82 loc) · 3.39 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
91
92
93
94
95
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven { url = uri("https://jitpack.io") }
// to find libraries in the project's "lib" directory
flatDir {
dirs "${rootProject.projectDir}/lib"
}
}
}
subprojects {
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'idea'
java {
sourceCompatibility = '17'
targetCompatibility = '17'
}
application {
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
applicationDefaultJvmArgs = ['-XstartOnFirstThread'] // this is when using a Mac as a development machine which requires the AppKit main UI thread to be used for GUI applications
}
}
dependencies {
// You can read more about how to add dependencies here:
// https://docs.gradle.org/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
//===----------------------------------------------------------------===
// LWJGL3
//===----------------------------------------------------------------===
implementation platform(libs.lwjgl.bom)
// Nuklear
implementation (libs.bundles.lwjgl.nuklear)
implementation (libs.bundles.lwjgl.stb)
implementation (libs.nuclear)
//===----------------------------------------------------------------===
// jMonkeyEngine3
//===----------------------------------------------------------------===
implementation(libs.jme3.core)
implementation(libs.jme3.desktop)
runtimeOnly(libs.jme3.jogg)
runtimeOnly(libs.jme3.plugins)
implementation(libs.jme3.effects)
runtimeOnly(libs.jme3.lwjgl3)
//===----------------------------------------------------------------===
// Lemur GUI
//===----------------------------------------------------------------===
implementation(libs.lemur)
implementation(libs.lemur.proto)
runtimeOnly(libs.groovy.jsr223)
//===----------------------------------------------------------------===
// jMe3GL2
//===----------------------------------------------------------------===
implementation(libs.jme3gl2.core)
implementation(libs.jme3gl2.jawt)
implementation(libs.jme3gl2.dyn4j)
implementation(libs.jme3gl2.plugins)
implementation(libs.dyn4j)
//===----------------------------------------------------------------===
// Other
//===----------------------------------------------------------------===
// plugins
implementation(libs.bundles.log4j)
implementation(libs.particlemonkey)
// local
implementation name: 'jMe3HUDL-1.0-SNAPSHOT'
}
// 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')
}
}