plugin_uploader icon indicating copy to clipboard operation
plugin_uploader copied to clipboard

Cannot find the task updateLocalPluginXml

Open angabriel opened this issue 2 years ago • 1 comments

The documentation says, the task is registered with the plugin. But i cannot find it in the tasks list nor does it code complete in build.gradle.kts file. The main task uploadPlugin is working fine though. Do you have any ideas?

angabriel avatar Sep 25 '23 10:09 angabriel

Sorry for the delay, I completely missed the notifications.

updateLocalPluginXml is not a registered task, I will update the README, sorry for the confusion. Instead, it needs to be registered on the project. Creating a task with type dev.bmac.gradle.intellij.UpdateXmlTask will allow you to use that task. In kotlin DSL, this would look like:

tasks.register("updateLocalPluginXml", dev.bmac.gradle.intellij.UpdateXmlTask::class.java) {
    updateFile.set(file("updatePlugins.xml"))
    downloadUrl.set("http://example.com/plugins/pluginFile.zip")
    pluginName.set("PluginName")
    pluginId.set(project.group as String)
    version.set(project.version as String)
    pluginDescription.set(file("description.txt").readText())
    changeNotes.set(file("change-notes.txt").readText())
    sinceBuild.set("211")
}

Let me know if that works for your project

brian-mcnamara avatar Mar 24 '24 18:03 brian-mcnamara