From b7ff16757ad09e6409fe835856a7b913d6e7d2f9 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 15 Nov 2016 16:25:18 +0100 Subject: [PATCH] Allow to specify path to upload plugins from --- upload_plugins.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload_plugins.gradle b/upload_plugins.gradle index 5b05983b87c..d84d8706571 100644 --- a/upload_plugins.gradle +++ b/upload_plugins.gradle @@ -18,10 +18,11 @@ task uploadPlugins() << { if (channel == "_default_") { channel = null } + def path = env['PLUGIN_UPLOAD_PATH'] || "." def repo = new org.jetbrains.intellij.pluginRepository.PluginRepositoryInstance( "https://plugins.jetbrains.com/", username, password) - new File(".").eachFileMatch(~/kotlin-plugin-.*\.zip/) { file -> + new File(path).eachFileMatch(~/kotlin-plugin-.*\.zip/) { file -> println("Uploading ${file.name}") repo.uploadPlugin(6954, file, channel) }