-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (84 loc) · 2.83 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
buildscript {
ext {
kotlin_version = '1.1.1'
dokka_version = '0.9.13'
gdx_version = '1.9.5'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.1" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
// GDX tools for packing textures
// Kotlin - language
// Dokka - documentation
dependencies {
classpath "com.badlogicgames.gdx:gdx-tools:$gdx_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = 1.6
version = '1.0.0'
ext {
appName = 'the-black-cat-client'
gdxVersion = '1.9.5'
ktxVersion = '1.9.5-b1'
}
kotlin {
experimental {
coroutines 'enable'
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "http://dl.bintray.com/kotlin/kotlin-eap-1.1" }
maven { url "https://jitpack.io" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.12"
}
}
project(':desktop') {
dependencies {
compile project(':core')
compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
}
}
project(':core') {
dependencies {
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
compile "com.github.czyzby:ktx-actors:$ktxVersion"
compile "com.github.czyzby:ktx-scene2d:$ktxVersion"
compile "io.socket:socket.io-client:0.8.3"
compile "io.reactivex:rxkotlin:0.60.0"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.8.6"
}
}
import com.badlogic.gdx.tools.texturepacker.TexturePacker
task texturePacker << {
logger.info "Packing textures"
logger.info "Cleaning build folder"
delete 'core/assets/textures/build/'
TexturePacker.process("core/assets/textures/", "core/assets/textures/build/", "textures")
logger.info "Textures packed"
}
task copyDocCSS(type: Copy) {
from('./doc-css/')
into('./doc/')
}