Skip to content

Commit

Permalink
added config to update verify plugin to be more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalk007 committed Sep 8, 2024
1 parent 258a4ba commit 5669add
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,24 @@ 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 5669add

Please sign in to comment.