updated build script

This commit is contained in:
Mariotaku Lee 2015-11-22 23:38:11 +08:00
parent 3bfd9fd461
commit 45980ff53d
1 changed files with 67 additions and 84 deletions

View File

@ -1,6 +1,3 @@
import com.android.build.gradle.AppPlugin
import com.android.build.gradle.LibraryPlugin
apply plugin: 'com.github.ben-manes.versions'
// Top-level build file where you can add configuration options common to all sub-projects/modules.
@ -31,8 +28,8 @@ allprojects {
}
subprojects {
plugins.withType(LibraryPlugin) {
afterEvaluate { project ->
if (project.hasProperty('android')) {
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
@ -55,16 +52,9 @@ subprojects {
}
}
plugins.withType(AppPlugin) {
project.plugins.withId('com.android.application') {
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
lintOptions {
abortOnError false
lintConfig rootProject.file('lint.xml')
}
signingConfigs {
debug {
@ -114,18 +104,11 @@ subprojects {
}
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}
}
}
task clean(type: Delete) {