mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 19:26:54 +08:00
[libgdx] Fat jar task to generate testing jar
This commit is contained in:
parent
acbcfeb44d
commit
e2212b722f
@ -145,13 +145,14 @@ configure(subprojects - project("spine-libgdx")) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
project("spine-libgdx-tests") {
|
project("spine-libgdx-tests") {
|
||||||
task runHeadlessTest(type: JavaExec) {
|
task fatJar(type: Jar) {
|
||||||
main = 'com.esotericsoftware.spine.HeadlessTest'
|
manifest {
|
||||||
classpath = sourceSets.main.runtimeClasspath
|
attributes 'Main-Class': 'com.esotericsoftware.spine.HeadlessTest'
|
||||||
workingDir = rootProject.projectDir
|
|
||||||
if (project.hasProperty('args')) {
|
|
||||||
args project.getProperty('args').split(' ')
|
|
||||||
}
|
}
|
||||||
|
archiveBaseName = 'spine-headless-test'
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
with jar
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user