Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 8a74b5b

Browse files
committed
fix :common sourcesJar publication
1 parent 603b3e0 commit 8a74b5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ tasks.shadowJar {
9090
java {
9191
sourceCompatibility = JavaVersion.VERSION_17
9292
targetCompatibility = JavaVersion.VERSION_17
93+
withSourcesJar()
9394
}
9495

9596
publishing {
9697
publications {
9798
create("shadow", MavenPublication::class) {
9899
artifactId = base.archivesName.get()
99100
from(components["shadow"])
101+
artifact(tasks.sourcesJar)
100102
}
101103
}
102104
repositories {

0 commit comments

Comments
 (0)