-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (56 loc) · 2.76 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
apply plugin: 'application'
mainClassName = 'tk.valoeghese.fc0.client.Main'
sourceCompatibility = JavaVersion.VERSION_16
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.MAC_OS) {
applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
}
group 'tk.valoeghese'
version '0.3.0'
switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.LINUX:
def osArch = System.getProperty("os.arch")
project.ext.natives = osArch.startsWith("arm") || osArch.startsWith("aarch64")
? "natives-linux-${osArch.contains("64") || osArch.startsWith("armv8") ? "arm64" : "arm32"}"
: "natives-linux"
break
case org.gradle.internal.os.OperatingSystem.MAC_OS:
project.ext.natives = "natives-macos"
break
case org.gradle.internal.os.OperatingSystem.WINDOWS:
project.ext.natives = System.getProperty("os.arch").contains("64") ? "natives-windows" : "natives-windows-x86"
break
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://repo.eclipse.org/content/groups/releases/' }
}
dependencies {
// lwjgl
implementation "org.lwjgl:lwjgl:${project.ext.lwjgl_version}"
//implementation "org.lwjgl:lwjgl-assimp:${project.ext.lwjgl_version}"
//implementation "org.lwjgl:lwjgl-jawt:${project.lwjgl_version}"
implementation "org.lwjgl:lwjgl-opengl:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-glfw:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-openal:${project.ext.lwjgl_version}"
implementation "org.lwjgl:lwjgl-stb:${project.ext.lwjgl_version}"
// joml
implementation "org.joml:joml:${project.joml_version}"
// fastutil
implementation "it.unimi.dsi:fastutil:${project.fastutil_version}"
// netty
implementation "io.netty:netty-all:${project.netty_version}"
// lwjgl natives
runtimeOnly "org.lwjgl:lwjgl:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-assimp:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-opengl:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-glfw:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-openal:${project.lwjgl_version}:${project.ext.natives}"
runtimeOnly "org.lwjgl:lwjgl-stb:${project.lwjgl_version}:${project.ext.natives}"
// my libraries
implementation 'com.github.valoeghese:SOD-java:2.1.1-gradle'
implementation "com.github.valoeghese:Scalpel:${project.scalpel_version}"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"
// JGit (Eclipse License)
testImplementation "org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r"
}