Skip to content

Commit 72530f2

Browse files
committed
Fixing Gradle publish steps
1 parent aef22be commit 72530f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java/preprocessor/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ dependencies{
3030
implementation(libs.antlr4Runtime)
3131
}
3232

33+
afterEvaluate {
34+
tasks.named<Jar>("sourcesJar") {
35+
dependsOn(tasks.named("generateGrammarSource"))
36+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
37+
}
38+
}
39+
3340
mavenPublishing{
3441
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
3542
signAllPublications()

0 commit comments

Comments
 (0)