Skip to content

Commit

Permalink
Fix run bot task specifying wrong pluginsdir
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 21, 2023
1 parent 2af9b6c commit d38d302
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import org.gradle.api.provider.Property
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.JavaExec
import org.gradle.api.tasks.TaskAction
import org.gradle.kotlin.dsl.*
import org.gradle.kotlin.dsl.assign
import kotlin.collections.asSequence
import kotlin.collections.component1
import kotlin.collections.component2
import kotlin.collections.set
import kotlin.io.path.isDirectory
import kotlin.io.path.listDirectoryEntries
import kotlin.io.path.notExists
Expand Down Expand Up @@ -55,6 +59,7 @@ abstract class RunBotTask : JavaExec() {
}

private fun configureSystemProperties() {
systemProperties["pf4j.pluginsDir"] = project.layout.buildDirectory.dir("test-bot/plugins")
systemProperties["pf4j.pluginsDir"] =
project.layout.buildDirectory.dir("test-bot/plugins").get().asFile.absolutePath
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ serialization = "1.6.0"
ktor = "2.3.5"
kord = "0.11.1"
jjwt = "0.11.5"
api = "3.25.0"
api = "3.25.1"
ksp = "1.9.20-1.0.13"
lavakord = "feature-new-lavasrc-fields-20230814.202530-2"

Expand Down

0 comments on commit d38d302

Please sign in to comment.