summaryrefslogtreecommitdiffstats
path: root/assets/build.gradle
blob: 6301d59df761acb159bc4deb78d868b6f8b84934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
configurations {
    texturePacker
}

dependencies {
    texturePacker "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
}

defaultTasks 'build'

task packLoading(type: JavaExec) {
    main = 'com.badlogic.gdx.tools.texturepacker.TexturePacker'
    classpath = configurations.texturePacker
    args = ['loading', 'data', 'loading']
}

task build() {
    description "Builds the skin at various DPIs"
}

build.dependsOn {
    tasks.findAll { task -> task.name.startsWith('pack') }
}