Update Gradle and Android, build improvements. Closes #1

This commit is contained in:
Emux
2016-06-16 13:04:00 +03:00
parent adc04ace7f
commit 9022ec14ec
8 changed files with 26 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'android-maven'
apply plugin: 'com.github.dcendents.android-maven'
configurations {
eclipseCompile
@@ -98,3 +98,15 @@ eclipse {
locationUri: 'PARENT-1-PROJECT_LOC/vtm-ext-libs/vtm-android'
}
}
android.libraryVariants.all { variant ->
def name = variant.buildType.name
if (name.equals("debug")) {
print "Skipping debug jar"
return; // Skip debug builds.
}
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}