Skip to content

Commit

Permalink
publish-to-sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-tech committed Dec 18, 2023
1 parent 807d896 commit 0547b21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
id("me.champeau.gradle.jmh") version "0.5.3"
id("io.freefair.maven-central.validate-poms") version "8.4"
id("ru.vyarus.pom") version "2.2.2"
id("io.codearte.nexus-staging") version "0.30.0"
}

repositories {
Expand Down Expand Up @@ -234,6 +235,10 @@ publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
if (isSnapshot && project.hasProperty("simplifyVersion")) {
version = findProperty("git.ref.slug") as String + "-SNAPSHOT"
}

pom {
description.set("Collection of parsers for Language 1C (BSL) in ANTLR4 format.")
url.set("https://github.com/1c-syntax/bsl-parser")
Expand Down Expand Up @@ -287,3 +292,8 @@ publishing {
}
}
}

nexusStaging {
serverUrl = "https://s01.oss.sonatype.org/service/local/"
stagingProfileId = "15bd88b4d17915" // ./gradlew getStagingProfile
}

0 comments on commit 0547b21

Please sign in to comment.