Allow to specify path to upload plugins from
This commit is contained in:
@@ -18,10 +18,11 @@ task uploadPlugins() << {
|
|||||||
if (channel == "_default_") {
|
if (channel == "_default_") {
|
||||||
channel = null
|
channel = null
|
||||||
}
|
}
|
||||||
|
def path = env['PLUGIN_UPLOAD_PATH'] || "."
|
||||||
def repo = new org.jetbrains.intellij.pluginRepository.PluginRepositoryInstance(
|
def repo = new org.jetbrains.intellij.pluginRepository.PluginRepositoryInstance(
|
||||||
"https://plugins.jetbrains.com/",
|
"https://plugins.jetbrains.com/",
|
||||||
username, password)
|
username, password)
|
||||||
new File(".").eachFileMatch(~/kotlin-plugin-.*\.zip/) { file ->
|
new File(path).eachFileMatch(~/kotlin-plugin-.*\.zip/) { file ->
|
||||||
println("Uploading ${file.name}")
|
println("Uploading ${file.name}")
|
||||||
repo.uploadPlugin(6954, file, channel)
|
repo.uploadPlugin(6954, file, channel)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user