Skip to content

Commit

Permalink
Pick the first result if there are multiple sources for lavalink jar
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 3, 2023
1 parent 31b94af commit ee37169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "dev.arbjerg"
version = "1.0.8"
version = "1.0.9"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/tasks/DownloadLavalinkTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract class DownloadLavalinkTask : DefaultTask() {
val configuration = project.configurations.detachedConfiguration(dependency)
.markResolvable()

val archive = configuration.resolve().single {
val archive = configuration.resolve().first {
it.name.endsWith(".jar")
&& "plain" !in it.name && "sources" !in it.name && "javadoc" !in it.name
}
Expand Down

0 comments on commit ee37169

Please sign in to comment.