removed unnecessary code from gradle build file
This commit is contained in:
parent
e3ca4ca485
commit
fcbbb552f4
|
@ -6,8 +6,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.android.support:support-v4:27.0.2'
|
implementation 'com.android.support:support-v4:27.0.2'
|
||||||
compile 'com.nineoldandroids:library:2.4.0'
|
implementation 'com.nineoldandroids:library:2.4.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -21,9 +21,9 @@ android {
|
||||||
versionCode 9
|
versionCode 9
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
@ -31,68 +31,3 @@ apply plugin: 'signing'
|
||||||
|
|
||||||
version = android.defaultConfig.versionName
|
version = android.defaultConfig.versionName
|
||||||
group = "de.timroes.android"
|
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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue