This repository has been archived by the owner on Nov 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
75 lines (59 loc) · 2.32 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
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
allprojects {
ext {
appName = 'Leikr'
mini2DxVersion = '2.0.0-beta.10'
groovyVersion = '4.0.6'
lwjglVersion = '3.3.1'
lwjglNatives32 = 'natives-linux-arm32'
lwjglNatives64 = 'natives-linux-arm64'
log4jVersion = '2.19.0'
}
repositories {
mavenCentral()
gradlePluginPortal()
maven { url "https://jitpack.io" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
}
project(":core") {
apply plugin: 'groovy'
dependencies {
// Logging
implementation "org.apache.logging.log4j:log4j-api:$log4jVersion"
implementation "org.apache.logging.log4j:log4j-core:$log4jVersion"
// Groovy 4.0.3 and 4.0.4 are throwing class not found for JavaParser. This is temporary to work around that.
implementation 'com.github.javaparser:javaparser-core:3.24.2'
implementation "org.mini2Dx:mini2dx-libgdx-desktop-lwjgl3:$mini2DxVersion"
implementation "org.mini2Dx:mini2dx-core:$mini2DxVersion"
implementation "org.mini2Dx:mini2dx-tiled:$mini2DxVersion"
implementation "org.apache.groovy:groovy:$groovyVersion"
implementation "org.apache.groovy:groovy-json:$groovyVersion"
// lwjgl3 natives:
implementation "org.lwjgl:lwjgl:$lwjglVersion"
implementation "org.lwjgl:lwjgl-glfw:$lwjglVersion"
implementation "org.lwjgl:lwjgl-openal:$lwjglVersion"
implementation "org.lwjgl:lwjgl-opengl:$lwjglVersion"
// arm64 lwjgl3 native libs
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives64"
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives64"
runtimeOnly "org.lwjgl:lwjgl-openal::$lwjglNatives64"
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives64"
}
}
project(":desktop") {
apply plugin: "application"
apply plugin: "groovy"
dependencies {
implementation project(":core")
implementation "org.apache.logging.log4j:log4j-api:$log4jVersion"
implementation "org.apache.logging.log4j:log4j-core:$log4jVersion"
implementation "org.apache.groovy:groovy:$groovyVersion"
implementation "org.mini2Dx:mini2dx-libgdx-desktop-lwjgl3:$mini2DxVersion"
}
}