File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
tiamat-destinations-compiler Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,20 @@ m2p {
1919 description = " Tiamat Destinations Compiler Plugin"
2020}
2121
22+ tasks.register(" sourcesJar" , Jar ::class ) {
23+ group = " build"
24+ description = " Assembles Kotlin sources"
25+
26+ archiveClassifier.set(" sources" )
27+ from(sourceSets.main.get().allSource)
28+ dependsOn(tasks.classes)
29+ }
30+
2231publishing {
2332 publications {
2433 create<MavenPublication >(" kotlinCompilerPlugin" ) {
2534 from(components[" kotlin" ])
35+ artifact(tasks[" sourcesJar" ])
2636 }
2737 }
2838}
Original file line number Diff line number Diff line change @@ -29,10 +29,20 @@ m2p {
2929 description = " Tiamat Destinations Gradle Plugin"
3030}
3131
32+ tasks.register(" sourcesJar" , Jar ::class ) {
33+ group = " build"
34+ description = " Assembles Kotlin sources"
35+
36+ archiveClassifier.set(" sources" )
37+ from(sourceSets.main.get().allSource)
38+ dependsOn(tasks.classes)
39+ }
40+
3241publishing {
3342 publications {
3443 create<MavenPublication >(" gradlePlugin" ) {
3544 from(components[" java" ])
45+ artifact(tasks[" sourcesJar" ])
3646 }
3747 }
3848}
You can’t perform that action at this time.
0 commit comments