Skip to content

Commit 5c0fa0e

Browse files
authored
Fix sources jar (#43)
Co-authored-by: hfhbd <[email protected]>
1 parent 92aad60 commit 5c0fa0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

postgres-native-sqldelight-dialect/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tasks.withType<GenerateModuleMetadata> {
8080
// Remove dependencies from POM: uber jar has no dependencies
8181
publishing {
8282
publications {
83-
withType(MavenPublication::class.java) {
83+
withType<MavenPublication> {
8484
if (name == "pluginMaven") {
8585
pom.withXml {
8686
val pomNode = asNode()
@@ -91,6 +91,9 @@ publishing {
9191
}
9292
}
9393
}
94+
artifact(tasks.emptyJar) {
95+
classifier = "sources"
96+
}
9497
}
9598
create("shadow", MavenPublication::class.java) {
9699
project.shadow.component(this)

0 commit comments

Comments
 (0)