Skip to content

Commit ec5aa2a

Browse files
committed
Merge branch 'release/v0.23.2'
2 parents d647462 + 0547b21 commit ec5aa2a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ plugins {
1515
id("io.freefair.javadoc-utf-8") version "8.4"
1616
id("com.github.ben-manes.versions") version "0.50.0"
1717
id("me.champeau.gradle.jmh") version "0.5.3"
18+
id("io.freefair.maven-central.validate-poms") version "8.4"
19+
id("ru.vyarus.pom") version "2.2.2"
20+
id("io.codearte.nexus-staging") version "0.30.0"
1821
}
1922

2023
repositories {
@@ -92,6 +95,8 @@ sourceSets.jmh {
9295
// [bug] https://youtrack.jetbrains.com/issue/KT-46165
9396
tasks.named<org.gradle.jvm.tasks.Jar>("sourcesJar") {
9497
duplicatesStrategy = DuplicatesStrategy.INCLUDE
98+
99+
dependsOn(tasks.generateGrammarSource)
95100
}
96101

97102
tasks.processTestResources {
@@ -230,6 +235,10 @@ publishing {
230235
publications {
231236
create<MavenPublication>("maven") {
232237
from(components["java"])
238+
if (isSnapshot && project.hasProperty("simplifyVersion")) {
239+
version = findProperty("git.ref.slug") as String + "-SNAPSHOT"
240+
}
241+
233242
pom {
234243
description.set("Collection of parsers for Language 1C (BSL) in ANTLR4 format.")
235244
url.set("https://github.com/1c-syntax/bsl-parser")
@@ -283,3 +292,8 @@ publishing {
283292
}
284293
}
285294
}
295+
296+
nexusStaging {
297+
serverUrl = "https://s01.oss.sonatype.org/service/local/"
298+
stagingProfileId = "15bd88b4d17915" // ./gradlew getStagingProfile
299+
}

0 commit comments

Comments
 (0)