Mindustry/core/build.gradle

27 lines
558 B
Groovy
Raw Normal View History

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/"]
import com.badlogic.gdx.tools.texturepacker.TexturePacker
task packSprites(){
doLast {
TexturePacker.process("core/assets-raw/sprites/", "core/assets/sprites/", "sprites.atlas")
}
}
task packUI(){
doLast {
TexturePacker.process("core/assets-raw/ui/", "core/assets/ui/", "uiskin.atlas")
}
}
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
}