From 9021c13a3bc2378aa943d207ecf51b857b141b9d Mon Sep 17 00:00:00 2001 From: Eyal Kapon Date: Sun, 8 Sep 2024 12:42:20 +0300 Subject: [PATCH] configured the verify-plugin command to run only on oldest and latest IDE versions (#479) --- build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build.gradle b/build.gradle index 082ab1c1..f93fbe48 100644 --- a/build.gradle +++ b/build.gradle @@ -37,6 +37,23 @@ patchPluginXml { untilBuild = "" } +listProductsReleases { + doLast { + // At the end of the build, write the first and last versions of the products to the output file. + // This will be used by the runPluginVerifier task to validate the compatibility of the plugin against the + // first and last versions of IntelliJ IDEA. + def outputFileObj = outputFile.get().asFile + if (outputFileObj.exists()) { + def lines = outputFileObj.readLines() + if (!lines.isEmpty()) { + def firstVersion = lines.first() + def lastVersion = lines.last() + outputFileObj.write("$firstVersion\n$lastVersion") + } + } + } +} + repositories { mavenLocal() mavenCentral()