Skip to content

Commit

Permalink
Switch to mavencentral publishing portal (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfhbd authored Nov 5, 2024
1 parent 3c8342b commit 6929572
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 14 deletions.
10 changes: 0 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import io.gitlab.arturbosch.detekt.*

plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator")
id("io.github.gradle-nexus.publish-plugin")
id("org.jetbrains.dokka")
id("io.gitlab.arturbosch.detekt")
}
Expand All @@ -16,15 +15,6 @@ tasks.dokkaHtmlMultiModule {
includes.from("README.md")
}

nexusPublishing {
this.repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}

detekt {
source.from(files(rootProject.rootDir))
parallel = true
Expand Down
2 changes: 1 addition & 1 deletion gradle/build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
implementation(libs.plugins.kotlin.parcelize.toDep())
implementation(libs.plugins.android.toDep())
implementation(libs.plugins.binary.toDep())
implementation(libs.plugins.publish.toDep())
implementation(libs.plugins.mavencentral.toDep())
implementation(libs.plugins.dokka.toDep())
implementation(libs.plugins.licensee.toDep())
implementation(libs.plugins.kover.toDep())
Expand Down
2 changes: 1 addition & 1 deletion gradle/build-logic/src/main/kotlin/kotlinMPP.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kotlin {
jvmToolchain(8)

jvm()
js(IR) {
js {
browser()
nodejs()
}
Expand Down
1 change: 1 addition & 0 deletions gradle/build-logic/src/main/kotlin/publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("maven-publish")
id("signing")
id("io.github.hfhbd.mavencentral")
}

val emptyJar by tasks.registering(Jar::class)
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", versi
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" }
android = { id = "com.android.application", version = "8.7.2" }
binary = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.16.3" }
publish = { id = "io.github.gradle-nexus.publish-plugin", version = "2.0.0" }
mavencentral = { id = "io.github.hfhbd.mavencentral", version = "0.0.14" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
licensee = { id = "app.cash.licensee", version = "1.12.0" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.3" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-rc-2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 6929572

Please sign in to comment.