Skip to content

Commit

Permalink
Merge pull request #305 from wealthfront/fix-publishing
Browse files Browse the repository at this point in the history
Use withSourcesJar to fix publishing errors
  • Loading branch information
cmathew authored Oct 24, 2024
2 parents 5129cf2 + 6f5d73a commit a1df2cb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
}

dependencies {
implementation 'com.android.tools.build:gradle:8.1.2'
implementation 'com.android.tools.build:gradle:8.1.4'
implementation 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.wealthfront
VERSION_NAME=2.2.7-beta
VERSION_NAME=2.2.8-SNAPSHOT

POM_DESCRIPTION=The simplest navigation library for Android

Expand Down
18 changes: 0 additions & 18 deletions gradle/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,10 @@ afterEvaluate { project ->
}
}

if (project.getPlugins().hasPlugin('com.android.application') ||
project.getPlugins().hasPlugin('com.android.library')) {

task androidSourcesJar(type: Jar) {
archiveClassifier = 'sources'
from android.sourceSets.main.java.source
}
}

artifacts {
if (project.getPlugins().hasPlugin('com.android.application') ||
project.getPlugins().hasPlugin('com.android.library')) {
archives androidSourcesJar
}
}

publishing.publications.all { publication ->
publication.groupId = GROUP
publication.version = VERSION_NAME

publication.artifact androidSourcesJar

configurePom(publication.pom)
}

Expand Down
7 changes: 7 additions & 0 deletions magellan-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ android {
minifyEnabled false
}
}

namespace 'com.wealthfront.magellan'

publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
Expand Down
7 changes: 7 additions & 0 deletions magellan-rx2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ android {
minifyEnabled false
}
}

namespace 'com.wealthfront.magellan.rx2'

publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
Expand Down
7 changes: 7 additions & 0 deletions magellan-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ android {
minifyEnabled false
}
}

namespace 'com.wealthfront.magellan.test'

publishing {
singleVariant("release") {
withSourcesJar()
}
}
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
Expand Down

0 comments on commit a1df2cb

Please sign in to comment.