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

Fixes #34 Automate Publication of Artifacts to the Central Repository #35

Merged
merged 1 commit into from
Mar 28, 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 .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
uses: gradle/actions/setup-gradle@v3

- name: Publish the Library
run: ./gradlew publishMultimodalSpannerPublicationToCentralRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
run: ./gradlew publishMultimodalSpannerPublicationToCentralRepository --max-workers 1 closeAndReleaseStagingRepositories
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract class BaseModuleConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
plugins {
apply(plugin("kotlin-android"))
apply(plugin("kotlin"))
}

android {
Expand Down
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.nexus)
}
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hilt = "2.50"
hilt-navigation-compose = "1.2.0"
kotlin = "1.9.22" # KSP and Kotlin must...
ksp = "1.9.22-1.0.17" # ... share the same major.minor.patch version
nexus = "2.0.0-rc-2"

# AndroidX
activity-ktx = "1.8.2"
Expand Down Expand Up @@ -59,8 +60,9 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
nexus = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexus" }

# Multimodal Spanner Convention Plugins
multimodal-app = { id = "multimodal.app", version = "unspecified" }
Expand Down