Skip to content

Commit

Permalink
WIP - minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-radhika-s committed Aug 14, 2023
1 parent 640d1d8 commit d3b5c29
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'


task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
from android.sourceSets.main.java.srcDirs
} else {
from sourceSets.main.java.srcDirs
}
from android.sourceSets.main.java.srcDirs
}

artifacts {
archives androidSourcesJar
}
group = PUBLISH_GROUP_ID
version = PUBLISH_VERSION

Expand All @@ -25,15 +19,15 @@ afterEvaluate {
groupId PUBLISH_GROUP_ID
artifactId PUBLISH_ARTIFACT_ID
version PUBLISH_VERSION

artifact androidSourcesJar
/// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
from components.release
} else {
artifact("$buildDir/libs/${project.getName()}-${version}.jar")
}
// if (project.plugins.findPlugin("com.android.library")) {
from components.release
// } else {
// artifact("$buildDir/libs/${project.getName()}-${version}.jar")
// }

artifact androidSourcesJar
// artifact androidSourcesJar

// Mostly self-explanatory metadata
pom {
Expand Down

0 comments on commit d3b5c29

Please sign in to comment.