Skip to content

Commit

Permalink
Fix gradle plugin issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Nov 4, 2024
1 parent 5339e15 commit 446a202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ import dev.schlaubi.mikbot.gradle.extension.pluginId
import org.gradle.api.DefaultTask
import org.gradle.api.file.Directory
import org.gradle.api.file.FileSystemOperations
import org.gradle.api.file.RegularFile
import org.gradle.api.provider.Property
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.provider.Provider
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.OutputDirectory
import org.gradle.api.tasks.TaskAction
import javax.inject.Inject

abstract class InstallPluginsToTestBotTask : DefaultTask() {

@get:Input
abstract val pluginArchive: Property<RegularFile>
@get:InputFile
abstract val pluginArchive: RegularFileProperty

@get:OutputDirectory
val outputDirectory: Provider<Directory> = project.layout.buildDirectory.dir("test-bot/plugins")
Expand All @@ -26,7 +25,7 @@ abstract class InstallPluginsToTestBotTask : DefaultTask() {
@TaskAction
fun install() {
val result = fs.copy {
from(pluginArchive.get())
from(pluginArchive)
into(outputDirectory)
rename { "plugin-${project.pluginId}.zip" }
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coroutines = "1.9.0"
serialization = "1.7.3"
ktor = "3.0.1"
kord = "feature-user-apps-20241102.180018-12"
api = "4.0.1"
api = "4.0.2"
ksp = "2.0.21-1.0.26"
lavakord = "8.0.1"
kordex-plugin = "1.5.5"
Expand Down

0 comments on commit 446a202

Please sign in to comment.