Skip to content

Commit c70bd43

Browse files
committed
Make jitpack happy?
1 parent 08e2cf5 commit c70bd43

File tree

5 files changed

+44
-1
lines changed

5 files changed

+44
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
.mtj.tmp/
1212

1313
# Package Files #
14-
*.jar
1514
*.war
1615
*.nar
1716
*.ear

common/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

gradle/wrapper/gradle-wrapper.jar

62.2 KB
Binary file not shown.

lldevs/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

plugin/build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)