File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ repositories {
1515}
1616
1717java {
18- withSourcesJar()
1918 sourceCompatibility = JavaVersion .VERSION_1_8
2019 targetCompatibility = JavaVersion .VERSION_1_8
2120}
@@ -32,10 +31,20 @@ val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
3231 archiveClassifier.set(" javadoc" )
3332}
3433
34+ val sourceJar: TaskProvider <Jar > by tasks.registering(Jar ::class ) {
35+ archiveClassifier.set(" sources" )
36+ from(project.the<SourceSetContainer >()[" main" ].allSource)
37+ }
38+
3539publishing {
3640 publications.create<MavenPublication >(" Processor" ) {
3741 artifactId = " sqllin-processor"
38- setArtifacts(listOf (" $buildDir /libs/sqllin-processor-$version .jar" , javadocJar))
42+ setArtifacts(
43+ listOf (
44+ " $buildDir /libs/sqllin-processor-$version .jar" ,
45+ javadocJar, sourceJar,
46+ )
47+ )
3948 with (pom) {
4049 name.set(" sqllin-processor" )
4150 description.set(" KSP code be used to generate the database column properties" )
You can’t perform that action at this time.
0 commit comments