Copy jme3-android.jar to the dist/opt folder as part of build

This commit is contained in:
shadowislord 2015-02-07 17:48:12 -05:00
parent 212a2d6e96
commit 10ccc570e1

View File

@ -48,7 +48,7 @@ jar.doFirst{
}
}
task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar']) << {
task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar', ':jme3-android:jar']) << {
// Copy all dependencies to ../dist/lib, remove versions from jar files
configurations.compile.resolvedConfiguration.resolvedArtifacts.each { artifact ->
copy {
@ -96,4 +96,11 @@ task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar']) << {
into '../dist/opt/native-bullet'
rename {"jme3-bullet-natives.jar"}
}
// Copy android packages, remove version
copy {
from project(':jme3-android').jar.archivePath
into '../dist/opt/android'
rename { project(':jme3-android').name + ".jar" }
}
}