-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
176 lines (144 loc) · 6.5 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
buildscript {
ext {
appName = 'my-game'
quickstartVersion = '0.6'
appVersion = '0.1'
gdxVersion = '1.9.6'
artemisVersion = '2.1.0'
artemisContribVersion = '2.3.0'
roboVMVersion = '2.2.0'
//box2DLightsVersion = '1.4'
//aiVersion = '1.8.0'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
jcenter()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.mobidevelop.robovm:robovm-gradle-plugin:2.2.0'
// lib for artemis-odb weaving.
// see https://github.com/junkdog/artemis-odb/wiki/Bytecode-weaving
classpath "net.onedaybeard.artemis:artemis-odb-gradle-plugin:$artemisVersion"
// lib for artemis-odb fluid.
classpath "net.onedaybeard.artemis:artemis-fluid-gradle-plugin:$artemisVersion"
}
}
allprojects {
apply plugin: "eclipse"
apply plugin: "idea"
version = "$appVersion"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
}
project(":desktop") {
apply plugin: "java"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
// Optional LibGDX Modules
// compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-desktop"
// compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
// compile "com.badlogicgames.gdx:gdx-controllers-desktop:$gdxVersion"
// compile "com.badlogicgames.gdx:gdx-controllers-platform:$gdxVersion:natives-desktop"
// compile "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-desktop"
// compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
}
}
project(":html") {
apply plugin: "gwt"
apply plugin: "war"
dependencies {
compile project(":core")
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-backend-gwt:$gdxVersion:sources"
// Optional LibGDX Modules
// compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion:sources"
// compile "com.badlogicgames.gdx:gdx-box2d-gwt:$gdxVersion:sources"
// compile "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion:sources"
// compile "com.badlogicgames.gdx:gdx-ai:$aiVersion:sources"
// compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion:sources"
// compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion"
// compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources"
// artemis-odb
compile "net.onedaybeard.artemis:artemis-odb-gwt:$artemisVersion"
compile "net.onedaybeard.artemis:artemis-odb-gwt:$artemisVersion:sources"
compile "net.onedaybeard.artemis:artemis-odb:$artemisVersion:sources"
compile "net.onedaybeard.artemis:artemis-odb-serializer:$artemisVersion:sources"
compile "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:$artemisVersion:sources"
// Artemis-odb bonus functionality (systems, events, components).
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion:sources"
compile "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion:sources"
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:$artemisContribVersion:sources"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-operations:$artemisContribVersion:sources"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-profiler:$artemisContribVersion:sources"
}
}
project(":components") {
apply plugin: "java"
dependencies {
// components to expose
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
}
}
project(":core") {
apply plugin: "java"
configurations {
provided
}
sourceSets {
// run the annotation processor compile time.
main { compileClasspath += [configurations.provided] }
test.java.srcDirs = ["test/"]
}
dependencies {
compile project(":components")
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
// Optional LibGDX Modules
// compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
// compile "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"
// compile "com.badlogicgames.gdx:gdx-ai:$aiVersion"
// compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion"
// compile "com.badlogicgames.gdx:gdx-bullet:$gdxVersion"
// compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
// Artemis-odb
compile "net.onedaybeard.artemis:artemis-odb:$artemisVersion"
compile "net.onedaybeard.artemis:artemis-odb-serializer-json-libgdx:$artemisVersion"
// Artemis-odb bonus functionality (systems, events, components).
compile "net.mostlyoriginal.artemis-odb:contrib-core:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-jam:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-eventbus:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-operations:$artemisContribVersion"
compile "net.mostlyoriginal.artemis-odb:contrib-plugin-profiler:$artemisContribVersion"
testCompile "junit:junit:4.12"
}
}
project(":matrix") {
apply plugin: "java"
dependencies {
compile project(":core")
compile "net.onedaybeard.ecs:matrix-cli:0.2.0"
}
task generateMatrix(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.artemis.cli.CliApplication'
args '-c', "$rootProject.projectDir/core/build/classes/main/", '-l', "$rootProject.ext.appName"
}
build.finalizedBy generateMatrix
}
tasks.eclipse.doLast {
delete ".project"
}