-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
131 lines (109 loc) · 4.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
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "java-library"
group = "com.github.eskalon.pancake"
version = "0.1.2"
ext {
appName = "pancake"
freetypeSkinVersion = "0.3.1"
gdxVersion = "1.12.1"
guacamoleVersion = "26a821e199" // = v.0.3.6
reflectionsVersion = "0.11.5"
screenmanagerVersion = "8781fa4946" // = 0.7.1
vfxVersion = "0.6.1"
// Test dependencies:
junitVersion = "5.9.3"
mockitoVersion = "3.12.4"
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "https://jitpack.io" }
}
}
project(":core") {
apply plugin: "java-test-fixtures" // used to expose LibgdxUnitTest
dependencies {
implementation "com.badlogicgames.gdx:gdx:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
api "com.github.crykn:libgdx-screenmanager:$screenmanagerVersion"
api "com.github.crykn.gdx-vfx:gdx-vfx-core:$vfxVersion"
api("com.github.crykn.guacamole:gdx:$guacamoleVersion") {
force = true // we want to override the version supplied by gdx-vfx and screenmanager
}
implementation "com.github.crykn:freetype-skin:$freetypeSkinVersion"
// Test dependencies
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
testImplementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
// Test fixture dependencies
testFixturesImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testFixturesImplementation "org.mockito:mockito-core:$mockitoVersion"
testFixturesImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
}
sourceSets.main {
resources.srcDirs = ["src/main/assets"]
}
sourceSets.test {
resources.srcDirs = ["src/test/assets"]
}
}
project(":g3d") {
dependencies {
api project(":core")
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
}
}
project(":lwjgl3") {
dependencies {
api project(":core")
api "com.github.crykn.guacamole:gdx-desktop:$guacamoleVersion"
implementation "net.oneandone.reflections8:reflections8:$reflectionsVersion" // alternative to org.reflections:reflections, see https://github.com/ronmamo/reflections/issues/273
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
// Test dependencies
testImplementation(testFixtures(project(":core")))
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
testImplementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
testImplementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
testImplementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
sourceSets.test {
resources.srcDirs = ["../core/src/test/assets"]
}
// This is needed so testFixtures don't break normal dependencies on Eclipse with Gradle 7.5+
// See https://github.com/gradle/gradle/issues/21853 and https://github.com/eclipse/buildship/issues/1206 for more information
eclipse.classpath.file {
whenMerged { classpath ->
def testDependencies = classpath.entries.findAll { entry -> entry instanceof org.gradle.plugins.ide.eclipse.model.ProjectDependency && entry.entryAttributes.test }
classpath.entries.removeAll testDependencies
}
}
}
project(":examples") {
dependencies {
api project(":core")
api project(":lwjgl3")
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.github.crykn.gdx-vfx:gdx-vfx-effects:$vfxVersion"
implementation "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
sourceSets.main {
resources.srcDirs = ["src/main/assets"]
}
}