Skip to content

Commit

Permalink
configured the verify-plugin command to run only on oldest and latest…
Browse files Browse the repository at this point in the history
… IDE versions
  • Loading branch information
eyalk007 committed Sep 8, 2024
1 parent b2cc244 commit 6784465
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6784465

Please sign in to comment.