-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move publishing block inside mavenPublishing
- Loading branch information
1 parent
fcc597e
commit 547eec0
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
|
@@ -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 { | ||
|
@@ -66,4 +63,4 @@ mavenPublishing { | |
developerConnection.set("scm:git:ssh://[email protected]/sainsburys-tech/k2zpl.git") | ||
} | ||
} | ||
} | ||
} |