Skip to content

Commit

Permalink
idk3
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Apr 21, 2024
1 parent 191d55c commit 78dc293
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ allprojects {
}

apply(plugin = "java")
apply(plugin = "maven-publish")

java {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand Down
11 changes: 4 additions & 7 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ val sourcesJar by tasks.registering(Jar::class) {
from(sourceSets["main"].allSource)
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
mavenPublishing {
pom {
name = "Lavaplayer v1 YouTube Source"
description = "YouTube source for Lavaplayer v1"
}
}
12 changes: 5 additions & 7 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
`java-library`
alias(libs.plugins.lavalink.gradle.plugin)
alias(libs.plugins.maven.publish.base)
}

val moduleName = "plugin"
Expand Down Expand Up @@ -37,12 +38,9 @@ tasks.jar {
archiveBaseName.set(moduleName)
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
mavenPublishing {
pom {
name = "Lavalink YouTube Plugin"
description = "YouTube plugin for Lavalink"
}
}
13 changes: 5 additions & 8 deletions v2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ val sourcesJar by tasks.registering(Jar::class) {
from(sourceSets["main"].allSource)
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = moduleName
artifact(sourcesJar)
}
mavenPublishing {
pom {
name = "Lavaplayer v2 YouTube Source"
description = "YouTube source for Lavaplayer v2"
}
}
}

0 comments on commit 78dc293

Please sign in to comment.