mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
27 lines
558 B
Groovy
27 lines
558 B
Groovy
apply plugin: "java"
|
|
sourceCompatibility = 1.8
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
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'
|
|
}
|
|
|
|
eclipse.project {
|
|
name = appName + "-core"
|
|
} |