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

experimental
shadowislord 10 years ago
parent 212a2d6e96
commit 10ccc570e1
  1. 9
      jme3-examples/build.gradle

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

Loading…
Cancel
Save