Skip to content

Commit

Permalink
Fix the sqllin-processor publishing script
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaoyuang committed Dec 1, 2022
1 parent 8a23a27 commit 3b345ae
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sqllin-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ repositories {
}

java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand All @@ -32,10 +31,20 @@ val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}

val sourceJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(project.the<SourceSetContainer>()["main"].allSource)
}

publishing {
publications.create<MavenPublication>("Processor") {
artifactId = "sqllin-processor"
setArtifacts(listOf("$buildDir/libs/sqllin-processor-$version.jar", javadocJar))
setArtifacts(
listOf(
"$buildDir/libs/sqllin-processor-$version.jar",
javadocJar, sourceJar,
)
)
with(pom) {
name.set("sqllin-processor")
description.set("KSP code be used to generate the database column properties")
Expand Down

0 comments on commit 3b345ae

Please sign in to comment.