File tree Expand file tree Collapse file tree 5 files changed +44
-1
lines changed Expand file tree Collapse file tree 5 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1111.mtj.tmp /
1212
1313# Package Files #
14- * .jar
1514* .war
1615* .nar
1716* .ear
Original file line number Diff line number Diff line change @@ -9,3 +9,17 @@ dependencies {
99 compileOnly(" dev.arbjerg:lavaplayer:1.5.3" )
1010}
1111
12+ val sourcesJar by tasks.registering(Jar ::class ) {
13+ archiveClassifier.set(" sources" )
14+ from(sourceSets[" common" ].allSource)
15+ }
16+
17+ publishing {
18+ publications {
19+ create<MavenPublication >(" mavenJava" ) {
20+ from(components[" java" ])
21+ artifactId = moduleName
22+ artifact(sourcesJar)
23+ }
24+ }
25+ }
Original file line number Diff line number Diff line change @@ -9,3 +9,18 @@ dependencies {
99 compileOnly(project(" :common" ))
1010 compileOnly(" dev.arbjerg:lavaplayer:2.1.1" )
1111}
12+
13+ val sourcesJar by tasks.registering(Jar ::class ) {
14+ archiveClassifier.set(" sources" )
15+ from(sourceSets[" lldevs" ].allSource)
16+ }
17+
18+ publishing {
19+ publications {
20+ create<MavenPublication >(" mavenJava" ) {
21+ from(components[" java" ])
22+ artifactId = moduleName
23+ artifact(sourcesJar)
24+ }
25+ }
26+ }
Original file line number Diff line number Diff line change @@ -11,3 +11,18 @@ dependencies {
1111 compileOnly(project(" :common" ))
1212 compileOnly(project(" :lldevs" ))
1313}
14+
15+ val sourcesJar by tasks.registering(Jar ::class ) {
16+ archiveClassifier.set(" sources" )
17+ from(sourceSets[" plugin" ].allSource)
18+ }
19+
20+ publishing {
21+ publications {
22+ create<MavenPublication >(" mavenJava" ) {
23+ from(components[" java" ])
24+ artifactId = moduleName
25+ artifact(sourcesJar)
26+ }
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments