Skip to content

Commit

Permalink
Prepare compiler module for maven publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
serbelga committed Apr 7, 2024
1 parent f771427 commit 5ee3260
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ plugins {
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.vanniktechMavenPublish) apply false
alias(libs.plugins.dokka)
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ksp = "1.9.23-1.0.19"
ktlint = "0.50.0"
lifecycleRuntimeKtx = "2.7.0"
navigationCompose = "2.7.7"
navigationComposeExtended = "0.1.0"
navigationComposeExtended = "0.2.0"
spotless = "6.25.0"
vanniktechMavenPublishPlugin = "0.28.0"

Expand Down
12 changes: 12 additions & 0 deletions navigation-compose-extended-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
kotlin("jvm")
alias(libs.plugins.ksp)
alias(libs.plugins.dokka)
alias(libs.plugins.vanniktechMavenPublish)
id("dev.sergiobelda.gradle.spotless")
}

group = "dev.sergiobelda.navigation.compose.extended"
version = libs.versions.navigationComposeExtended.get()

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
Expand All @@ -16,3 +22,9 @@ dependencies {
implementation(libs.squareup.kotlinpoet)
implementation(libs.squareup.kotlinpoetKsp)
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.S01, true)

signAllPublications()
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ internal class SafeNavArgsClassGenerator(
navArgumentParameter.parameter.type.resolve().toTypeName().copy(nullable = true)
val member: MemberName =
navArgumentParameter.parameter.type.resolve().mapToNavArgsGetter()
?: return@forEach
addProperty(
PropertySpec.builder(
navArgumentParameter.name,
Expand Down

0 comments on commit 5ee3260

Please sign in to comment.