Skip to content

Commit

Permalink
Move publishing block inside mavenPublishing
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattking committed Aug 3, 2024
1 parent fcc597e commit 547eec0
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
kotlin("jvm") version "1.9.23"
id("maven-publish")
Expand Down Expand Up @@ -27,19 +25,18 @@ tasks.test {
}


publishing {
repositories {
maven("https://maven.pkg.github.com/sainsburys-tech/k2zpl") {
name = "GitHubPackages"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
mavenPublishing {
publishing {
repositories {
maven("https://maven.pkg.github.com/sainsburys-tech/k2zpl") {
name = "GitHubPackages"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates("com.sainsburys.k2zpl", "k2zpl", "0.1.0")
pom {
Expand All @@ -66,4 +63,4 @@ mavenPublishing {
developerConnection.set("scm:git:ssh://[email protected]/sainsburys-tech/k2zpl.git")
}
}
}
}

0 comments on commit 547eec0

Please sign in to comment.