-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.82 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
google()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
dependencies {
classpath "net.dermetfan.libgdx-utils:libgdx-utils:0.13.4"
classpath "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
classpath "com.android.tools.build:gradle:$androidPluginVersion"
classpath "com.mobidevelop.robovm:robovm-gradle-plugin:$robovmVersion"
classpath "org.multi-os-engine:moe-gradle:$moeVersion"
classpath "de.richsource.gradle.plugins:gwt-gradle-plugin:$gwtPluginVersion"
}
}
allprojects {
apply plugin: 'eclipse'
apply plugin: 'idea'
}
configure(subprojects - project(':android')) {
apply plugin: 'java'
sourceCompatibility = 1.8
}
project(":server") {
apply plugin: "java"
dependencies {
compile "io.vertx:vertx-core:$vertxVersion"
compile "com.github.czyzby:gdx-websocket-serialization:$libVersion"
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion"
}
}
subprojects {
version = '0.0.1-SNAPSHOT'
ext.appName = 'Rymdskepp'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
// Clearing Eclipse project data in root folder:
tasks.eclipse.doLast {
delete '.project'
delete '.classpath'
delete '.settings/'
}
project.ext.texturePacker = [ "assets/images", "assets/packed", "game" ]
// Import the texture packer
import com.badlogic.gdx.tools.texturepacker.TexturePacker
// Add a new task that packs the textures for you
task texturePacker << {
if (project.ext.has('texturePacker')) {
logger.info "Calling TexturePacker: "+texturePacker
TexturePacker.process(texturePacker[0], texturePacker[1], texturePacker[2])
}
}