build: fix gradle 3.2.1 deprecations

cleanup_build_scripts
Kirill Vainer 8 years ago
parent 06757f73b4
commit c37f0e59d2
  1. 5
      build.gradle
  2. 4
      jme3-bullet-native-android/build.gradle
  3. 2
      jme3-bullet-native/build.gradle
  4. 4
      jme3-examples/build.gradle

@ -29,8 +29,8 @@ task run(dependsOn: ':jme3-examples:run') {
defaultTasks 'run'
task libDist(dependsOn: subprojects.build) << {
// description 'Builds and copies the engine binaries, sources and javadoc to build/libDist'
task libDist(dependsOn: subprojects.build, description: 'Builds and copies the engine binaries, sources and javadoc to build/libDist') {
doLast {
File libFolder = mkdir("$buildDir/libDist/lib")
File sourceFolder = mkdir("$buildDir/libDist/sources")
File javadocFolder = mkdir("$buildDir/libDist/javadoc")
@ -60,6 +60,7 @@ task libDist(dependsOn: subprojects.build) << {
}
}
}
}
task createZipDistribution(type:Zip,dependsOn:["dist","libDist"], description:"Package the nightly zip distribution"){
archiveName "jME" + jmeFullVersion + ".zip"

@ -102,7 +102,8 @@ task copyJmeAndroid(type: Copy, dependsOn:copyJmeCpp) {
into outputDir
}
task generateNativeHeaders(dependsOn: copyJmeAndroid) << {
task generateNativeHeaders(dependsOn: copyJmeAndroid) {
doLast {
String destDirPath = jniPath
String classes = " \
com.jme3.bullet.PhysicsSpace, \
@ -154,6 +155,7 @@ task generateNativeHeaders(dependsOn: copyJmeAndroid) << {
args classes.split(",").collect { it.trim() }
}
}
}
task buildBulletNativeLib(type: Exec, dependsOn: generateNativeHeaders) {
// args 'TARGET_PLATFORM=android-9'

@ -208,7 +208,7 @@ unzipBullet.dependsOn {
}
}
task unzipBulletIfNeeded << {
task unzipBulletIfNeeded {
}
unzipBulletIfNeeded.dependsOn {

@ -62,7 +62,8 @@ jar.doFirst{
task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar', ':jme3-android:jar', \
':jme3-android-native:jar', ':jme3-bullet-native-android:jar', \
':jme3-bullet-native:jar']) << {
':jme3-bullet-native:jar']) {
doLast {
// Copy all dependencies to ../dist/lib, remove versions from jar files
configurations.compile.resolvedConfiguration.resolvedArtifacts.each { artifact ->
copy {
@ -128,3 +129,4 @@ task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar', ':jme3-and
rename {project(':jme3-bullet-native-android').name+".jar"}
}
}
}

Loading…
Cancel
Save