From 1a9ed88be435fac881a56ca928fad2c77ab287e4 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Tue, 19 Mar 2019 20:37:49 +0700 Subject: [PATCH] Don't publish CLion/AppCode plugins to IDEA channel at plugins.jetbrains.com --- upload_plugins.gradle | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/upload_plugins.gradle b/upload_plugins.gradle index 7e72ca2428e..f9af1095a59 100644 --- a/upload_plugins.gradle +++ b/upload_plugins.gradle @@ -26,9 +26,15 @@ task uploadPlugins() << { "https://plugins.jetbrains.com/", username, password) - File[] files = new File(path).listFiles({ File f, String filename -> - filename.startsWith("kotlin-plugin") && filename.endsWith(".zip") - } as FilenameFilter) + File[] files = new File(path).listFiles({ _, String filename -> + if (!filename.startsWith("kotlin-plugin") || !filename.endsWith(".zip")) false + else { + // don't publish CIDR plugins to IDEA channel + def filenameLowerCase = filename.toLowerCase() + if (filenameLowerCase.contains("clion") || filenameLowerCase.contains("appcode")) false + else true + } + } as FilenameFilter) files = files.sort { f1, f2 -> f1.name.contains("1.1.2-5") ? 1 : (f2.name.contains("1.1.2-5") ? -1 : (f1.name <=> f2.name))