2017-04-30 08:25:59 +07:00
|
|
|
apply plugin: "java"
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
2017-07-28 00:27:11 +07:00
|
|
|
sourceSets.main.java.srcDirs = ["src/"]
|
2017-08-09 07:18:31 +07:00
|
|
|
|
2018-01-27 03:09:13 +07:00
|
|
|
import com.badlogic.gdx.tools.texturepacker.TexturePacker
|
2017-08-09 07:18:31 +07:00
|
|
|
|
2018-01-27 03:09:13 +07:00
|
|
|
task packSprites(){
|
|
|
|
doLast {
|
|
|
|
TexturePacker.process("core/assets-raw/sprites/", "core/assets/sprites/", "sprites.atlas")
|
|
|
|
}
|
2017-08-09 07:18:31 +07:00
|
|
|
}
|
|
|
|
|
2018-01-27 03:09:13 +07:00
|
|
|
task packUI(){
|
|
|
|
doLast {
|
|
|
|
TexturePacker.process("core/assets-raw/ui/", "core/assets/ui/", "uiskin.atlas")
|
|
|
|
}
|
2017-08-09 07:18:31 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
task pack(){
|
|
|
|
dependsOn 'packSprites'
|
|
|
|
dependsOn 'packUI'
|
|
|
|
}
|
|
|
|
|
2017-04-30 08:25:59 +07:00
|
|
|
eclipse.project {
|
|
|
|
name = appName + "-core"
|
2017-07-28 00:27:11 +07:00
|
|
|
}
|