From fcbbb552f412486ea7be572505c1db4a16b5cf68 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 27 Feb 2018 18:28:30 +0100 Subject: [PATCH] removed unnecessary code from gradle build file --- libs/EnhancedListView/build.gradle | 75 ++---------------------------- 1 file changed, 5 insertions(+), 70 deletions(-) diff --git a/libs/EnhancedListView/build.gradle b/libs/EnhancedListView/build.gradle index 86eddab50..b43eedae8 100644 --- a/libs/EnhancedListView/build.gradle +++ b/libs/EnhancedListView/build.gradle @@ -6,8 +6,8 @@ repositories { } dependencies { - compile 'com.android.support:support-v4:27.0.2' - compile 'com.nineoldandroids:library:2.4.0' + implementation 'com.android.support:support-v4:27.0.2' + implementation 'com.nineoldandroids:library:2.4.0' } android { @@ -21,9 +21,9 @@ android { versionCode 9 } - lintOptions { - abortOnError false - } + lintOptions { + abortOnError false + } } apply plugin: 'maven' @@ -31,68 +31,3 @@ apply plugin: 'signing' version = android.defaultConfig.versionName group = "de.timroes.android" - -if(project.hasProperty("EnhancedListView.properties") && new File(project.property("EnhancedListView.properties")).exists()) { - - Properties props = new Properties() - props.load(new FileInputStream(file(project.property("EnhancedListView.properties")))) - - gradle.taskGraph.whenReady { taskGraph -> - if (taskGraph.allTasks.any { it instanceof Sign }) { - allprojects { ext."signing.keyId" = props['signing.keyId'] } - allprojects { ext."signing.secretKeyRingFile" = props['signing.secretKeyRingFile'] } - allprojects { ext."signing.password" = props['signing.password'] } - } - } - - signing { - required { has("release") && gradle.taskGraph.hasTask("uploadArchives") } - sign configurations.archives - } - - uploadArchives { - - configuration = configurations.archives - repositories.mavenDeployer { - - beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } - - repository(url: props['sonatypeRepo']) { - authentication(userName: props['sonatypeUsername'], password: props['sonatypePassword']) - } - - pom.project { - - name 'EnhancedListView' - packaging 'aar' - description 'ListView with enhanced features for Android' - url 'https://github.com/timroes/EnhancedListView' - - scm { - url 'scm:git@github.com:timroes/EnhancedListView.git' - connection 'scm:git@github.com:timroes/EnhancedListView.git' - developerConnection 'scm:git@github.com:timroes/EnhancedListView.git' - } - - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - - developers { - developer { - id 'timroes' - name 'Tim Roes' - email 'mail@timroes.de' - } - } - - } - - } - } - -}