Skip to content

Commit c08dcbd

Browse files
committed
ci: add nexus-staging plugin
1 parent 75bcda2 commit c08dcbd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ plugins {
1818
id("com.google.cloud.tools.jib") version "2.0.0"
1919
id("com.github.johnrengelman.shadow") version "5.2.0"
2020
id("net.researchgate.release") version "2.8.1"
21+
id("io.codearte.nexus-staging") version "0.21.2"
2122
`java-library`
2223
`maven-publish`
2324
signing
@@ -56,6 +57,12 @@ dependencies {
5657
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
5758
}
5859

60+
nexusStaging {
61+
username = System.getenv("SONATYPE_USERNAME")
62+
password = System.getenv("SONATYPE_PASSWORD")
63+
packageGroup = "no.nav"
64+
}
65+
5966
publishing {
6067
publications {
6168
create<MavenPublication>("mavenJava") {

0 commit comments

Comments
 (0)