Skip to content

Commit

Permalink
Make jitpack happy?
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed Apr 19, 2024
1 parent 08e2cf5 commit c70bd43
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
Expand Down
14 changes: 14 additions & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ dependencies {
compileOnly("dev.arbjerg:lavaplayer:1.5.3")
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["common"].allSource)
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
15 changes: 15 additions & 0 deletions lldevs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@ dependencies {
compileOnly(project(":common"))
compileOnly("dev.arbjerg:lavaplayer:2.1.1")
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["lldevs"].allSource)
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
}
}
15 changes: 15 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ dependencies {
compileOnly(project(":common"))
compileOnly(project(":lldevs"))
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets["plugin"].allSource)
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
}
}

0 comments on commit c70bd43

Please sign in to comment.