Skip to content

Commit

Permalink
Add Nexus Publication Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverspryn committed Mar 28, 2024
1 parent 7d31686 commit 7507287
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
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

0 comments on commit 7507287

Please sign in to comment.