mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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") {
|
||||
task runHeadlessTest(type: JavaExec) {
|
||||
main = 'com.esotericsoftware.spine.HeadlessTest'
|
||||
classpath = sourceSets.main.runtimeClasspath
|
||||
workingDir = rootProject.projectDir
|
||||
if (project.hasProperty('args')) {
|
||||
args project.getProperty('args').split(' ')
|
||||
task fatJar(type: Jar) {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'com.esotericsoftware.spine.HeadlessTest'
|
||||
}
|
||||
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