Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use withSourcesJar to fix publishing errors #305

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading