-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
104 lines (85 loc) · 3.79 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import org.gradle.internal.os.OperatingSystem
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'de.fuerstenau.buildconfig' version '1.1.8'
id 'idea'
}
group 'de.jcm'
version '1.0'
sourceCompatibility = 1.8
project.ext.lwjglVersion = "3.2.3"
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-assimp"
implementation "org.lwjgl:lwjgl-glfw"
implementation "org.lwjgl:lwjgl-openal"
implementation "org.lwjgl:lwjgl-opengl"
implementation "org.lwjgl:lwjgl-stb"
//64 Bit Linux
runtimeOnly "org.lwjgl:lwjgl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-linux"
//64 Bit Windows
runtimeOnly "org.lwjgl:lwjgl::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-windows"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-windows"
// 32 Bit Windows
runtimeOnly "org.lwjgl:lwjgl::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-assimp::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-glfw::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-openal::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-opengl::natives-windows-x86"
runtimeOnly "org.lwjgl:lwjgl-stb::natives-windows-x86"
implementation 'net.java.dev.jna:jna:5.11.0'
implementation 'net.java.dev.jna:jna-platform:5.11.0'
implementation 'org.json:json:20190722'
implementation group: 'commons-io', name: 'commons-io', version: '2.6'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation group: 'org.joml', name: 'joml', version: '1.9.17'
implementation group: 'com.github.vatbub', name: 'mslinks', version: '1.0.5'
implementation 'com.github.JnCrMx:discord-game-sdk4j:0.5.5'
implementation 'com.dorkbox:SystemTray:4.1'
implementation 'org.bytedeco:javacv:1.5.3'
// only include natives for the platforms we want to use (Windows, 32 and 64 bit)
implementation group: 'org.bytedeco', name: 'ffmpeg', version: '4.2.2-1.5.3', classifier: 'windows-x86'
implementation group: 'org.bytedeco', name: 'ffmpeg', version: '4.2.2-1.5.3', classifier: 'windows-x86_64'
implementation group: 'org.bytedeco', name: 'ffmpeg', version: '4.2.2-1.5.3', classifier: 'linux-x86'
implementation group: 'org.bytedeco', name: 'ffmpeg', version: '4.2.2-1.5.3', classifier: 'linux-x86_64'
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.3', classifier: 'windows-x86'
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.3', classifier: 'windows-x86_64'
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.3', classifier: 'linux-x86'
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.3', classifier: 'linux-x86_64'
}
buildConfig {
packageName = 'de.jcm.dynamicwallpaper'
}
mainClassName = 'de.jcm.dynamicwallpaper.DynamicWallpaper'