Skip to content

Commit

Permalink
Fix a bug in the Gradle plugin that installs plugins twice
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Sep 3, 2024
1 parent f0f2e9a commit 7dd1de6
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ abstract class InstallPluginsToTestBotTask : DefaultTask() {
fun install() {
val task = pluginArchive.get().get()

val deleteResult = project.delete {
delete(task.destinationDirectory.asFile.get().absolutePath + "/plugin-${project.pluginId}*.zip")
}

val result = project.copy {
from(task.destinationDirectory)
include(task.archiveFile.get().asFile.name)
into(project.layout.buildDirectory.dir("test-bot/plugins"))
rename { "plugin-${project.pluginId}.zip" }
}

didWork = result.didWork || deleteResult.didWork
didWork = result.didWork
}
}

0 comments on commit 7dd1de6

Please sign in to comment.