-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle
76 lines (66 loc) · 2.16 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.codehaus.groovy.runtime.GStringImpl
buildscript {
repositories {
maven { url "https://maven.aliyun.com/repository/public/" } // Aliyun Mirrors
maven { url "https://maven.aliyun.com/repository/gradle-plugin/" }
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.openjfx:javafx-plugin:0.0.13"
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "java-library"
apply plugin: "org.openjfx.javafxplugin"
version = "3.5.0"
ext {
// App Metadata
appName = "ArkPets"
appAuthor = "Harry Huang"
appYearBegin = "2022"
appYearCurrent = new Date().format("yyyy", TimeZone.getTimeZone("GMT+0:00"))
appCopyright = "Copyright (c) ${appYearBegin}-${appYearCurrent} ${appAuthor}" as GStringImpl
// Prefabs
gdxVersion = "1.11.0"
jnaVersion = "5.12.1"
javaFXVersion = "17.0.8"
}
repositories {
maven { url "https://maven.aliyun.com/repository/public/" } // Aliyun Mirrors
mavenLocal()
mavenCentral()
}
}
project(":desktop") {
dependencies {
implementation project(":core")
// libGDX Desktop
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
}
project(":core") {
dependencies {
// Spine Runtime
api "com.esotericsoftware.spine:spine-libgdx:3.8.99.1"
// libGDX
api "com.badlogicgames.gdx:gdx:$gdxVersion"
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
// JNA
api "net.java.dev.jna:jna:$jnaVersion"
api "net.java.dev.jna:jna-platform:$jnaVersion"
// JavaFX
api "org.openjfx:javafx-base:$javaFXVersion:win"
api "org.openjfx:javafx-controls:$javaFXVersion:win"
api "org.openjfx:javafx-graphics:$javaFXVersion:win"
api "org.openjfx:javafx-fxml:$javaFXVersion:win"
// JFoenix
api "com.jfoenix:jfoenix:9.0.1"
// FastJson
api "com.alibaba:fastjson:2.0.39"
// Log4j
api "apache-log4j:log4j:1.2.15"
}
}