From f9df5b065e42cc81c1dbe56e6ec5aa90488c4284 Mon Sep 17 00:00:00 2001 From: Johan Briantais Date: Fri, 21 Mar 2025 21:16:01 +0100 Subject: [PATCH] Add new minor versions 5.6.x for JMeter --- .../sdkman/changelogs/JMeterMigration.scala | 36 +++++++++++-------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/src/main/scala/io/sdkman/changelogs/JMeterMigration.scala b/src/main/scala/io/sdkman/changelogs/JMeterMigration.scala index ca8c235d..99000ae8 100644 --- a/src/main/scala/io/sdkman/changelogs/JMeterMigration.scala +++ b/src/main/scala/io/sdkman/changelogs/JMeterMigration.scala @@ -2,10 +2,10 @@ package io.sdkman.changelogs import com.github.mongobee.changeset.{ChangeLog, ChangeSet} import com.mongodb.client.MongoDatabase -import org.bson.Document @ChangeLog(order = "051") class JMeterMigration { + val candidate = "jmeter" @ChangeSet( order = "001", @@ -14,7 +14,7 @@ class JMeterMigration { ) def migration001(implicit db: MongoDatabase): Candidate = { Candidate( - candidate = "jmeter", + candidate = candidate, name = "Apache JMeter", description = "The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions.", @@ -23,20 +23,26 @@ class JMeterMigration { } @ChangeSet( - order = "006", - id = "006-add_5.6_jmeter_candidate", - author = "eddumelendez" + order = "007", + id = "007-add_5.6.x_jmeter_candidate", + author = "jbriantais" ) - def migration006(implicit db: MongoDatabase): Unit = { - val version = "5.6" - Version( - candidate = "jmeter", - version = version, - url = - s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip" - ).validate() + def migration007(implicit db: MongoDatabase): Unit = { + List( + "5.6.1", + "5.6.2", + "5.6.3" + ).map( + version => + Version( + candidate = candidate, + version = version, + url = + s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip" + ) + ) + .validate() .insert() - .asCandidateDefault() + setCandidateDefault(candidate, "5.6.3") } - }