diff --git a/mavencentral.gradle b/mavencentral.gradle index fa27acc..9706a1f 100644 --- a/mavencentral.gradle +++ b/mavencentral.gradle @@ -1,23 +1,25 @@ +plugins { + id 'maven-publish' + id 'signing' +} + task androidSourcesJar(type: Jar) { archiveClassifier.set('sources') from android.sourceSets.main.java.srcDirs } -task publishReleasePublicationToSonatypeRepository { - dependsOn ':library:signReleasePublication' -} - -task publishNoopPublicationToSonatypeRepository { - dependsOn ':library:signNoopPublication' -} +//task publishReleasePublicationToSonatypeRepository { +// dependsOn ':library:signReleasePublication' +//} +// +//task publishNoopPublicationToSonatypeRepository { +// dependsOn ':library:signNoopPublication' +//} artifacts { archives androidSourcesJar } -apply plugin: 'maven-publish' -apply plugin: 'signing' - ext { PUBLISH_GROUP_ID = 'com.telefonica' PUBLISH_ARTIFACT_ID = 'androidlogger'