From 9a6bc77e8e8b1e13f64d5412eee9794616f9fcea Mon Sep 17 00:00:00 2001 From: Javier Delgado Aylagas Date: Thu, 5 Dec 2024 13:46:10 +0100 Subject: [PATCH] Plugins block --- mavencentral.gradle | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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'