-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (59 loc) · 1.94 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
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
plugins {
id 'java'
}
group 'org.legendofdragoon'
version '1.0-SNAPSHOT'
sourceCompatibility = targetCompatibility = 1.21
project.ext.lwjglVersion = "3.3.3"
project.ext.jomlVersion = "1.10.1"
if(DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) {
project.ext.lwjglNatives = "natives-windows"
}
if(DefaultNativePlatform.getCurrentOperatingSystem().isLinux()) {
project.ext.lwjglNatives = "natives-linux"
}
if(DefaultNativePlatform.getCurrentOperatingSystem().isMacOsX()) {
project.ext.lwjglNatives = "natives-macos"
}
java {
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.14.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.1'
implementation group: 'org.fusesource.jansi', name: 'jansi', version: '2.3.2'
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-glfw"
implementation "org.lwjgl:lwjgl-nuklear"
implementation "org.lwjgl:lwjgl-opengl"
implementation "org.lwjgl:lwjgl-stb"
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-nuklear::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives"
implementation "org.joml:joml:${jomlVersion}"
implementation group: 'it.unimi.dsi', name: 'fastutil', version: '8.4.0'
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class': 'org.legendofdragoon.fonteditor.Main'
)
}
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
} {
exclude "META-INF/**"
}
}