Skip to content

Commit

Permalink
Plugins block
Browse files Browse the repository at this point in the history
  • Loading branch information
jdelga committed Dec 5, 2024
1 parent c2a0744 commit 9a6bc77
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions mavencentral.gradle
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 9a6bc77

Please sign in to comment.