Skip to content

Commit

Permalink
use nexus-publish plugin to publish to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Dec 1, 2023
1 parent 1ce7865 commit 91d4884
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ buildscript {

plugins {
id("build-logic.published-kotlin-jvm")
alias(libs.plugins.nexus.publish)
}

version = "1.0.0-SNAPSHOT"
Expand Down Expand Up @@ -36,6 +37,12 @@ kotlin {
}
}

nexusPublishing {
repositories {
sonatype()
}
}

val packageName = "com.tegonal.minimalist"
val packageNameAsPath = packageName.replace('.', '/')

Expand Down
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
[versions]
atrium = "1.1.0"
junitJupiter = "5.10.1"
nexusPublish="1.3.0"

[libraries]
atrium-fluent = { module = "ch.tutteli.atrium:atrium-fluent", version.ref = "atrium" }
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junitJupiter" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junitJupiter" }

[plugins]
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexusPublish" }

0 comments on commit 91d4884

Please sign in to comment.