Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 9, 2024
1 parent 29026fc commit 4ffaa24
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 45 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
44 changes: 0 additions & 44 deletions plugin/build.gradle

This file was deleted.

48 changes: 48 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
plugins {
id("dev.arbjerg.lavalink.gradle-plugin") version "1.0.15"
}

base {
archivesName = "lavasrc-plugin"
}

lavalinkPlugin {
name = "lavasrc-plugin"
apiVersion = "4.0.0"
serverVersion = "4.0.5"
configurePublishing = false
}



dependencies {
implementation(project(":main"))
implementation(project(":protocol"))
compileOnly("dev.lavalink.youtube:common:1.1.0")
compileOnly("com.github.topi314.lavasearch:lavasearch:1.0.0")
implementation("com.github.topi314.lavasearch:lavasearch-plugin-api:1.0.0")
implementation("com.github.topi314.lavalyrics:lavalyrics-plugin-api:1.0.0")

// Copy lyrics.kt from main
project.project(":main").configurations["implementation"].dependencies.forEach {
if (it.group == "dev.schlaubi.lyrics") {
add("implementation", it)
}
}
}

tasks {
jar {
exclude("dev/schlaubi/lyrics/LyricsClient*")
exclude("dev/schlaubi/lyrics/Lyrics_jvmKt.class")
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifactId = base.archivesName.get()
}
}
}

0 comments on commit 4ffaa24

Please sign in to comment.