Skip to content

Commit b26f2fb

Browse files
authored
update with latest versions for activemq, jmeter & mybatis (sdkman#599)
* update with latest versions for activemq, jmeter & mybatis * removing duplicates * matching changeset id with name
1 parent 8496430 commit b26f2fb

File tree

3 files changed

+39
-90
lines changed

3 files changed

+39
-90
lines changed

src/main/scala/io/sdkman/changelogs/ActiveMQMigrations.scala

Lines changed: 16 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -6,79 +6,47 @@ import org.bson.Document
66

77
@ChangeLog(order = "060")
88
class ActiveMQMigrations {
9+
10+
val CandidateName = "activemq"
11+
912
@ChangeSet(
1013
order = "001",
1114
id = "001-add_activemq_candidate",
1215
author = "xshyamx"
1316
)
1417
def migration001(implicit db: MongoDatabase): Candidate = {
1518
Candidate(
16-
candidate = "activemq",
19+
candidate = CandidateName,
1720
name = "Apache ActiveMQ (Classic)",
1821
description =
1922
"Apache ActiveMQ® is the most popular open source, multi-protocol, Java-based message broker. It supports industry standard protocols so users get the benefits of client choices across a broad range of languages and platforms. Connect from clients written in JavaScript, C, C++, Python, .Net, and more. Integrate your multi-platform applications using the ubiquitous AMQP protocol. Exchange messages between your web applications using STOMP over websockets. Manage your IoT devices using MQTT. Support your existing JMS infrastructure and beyond. ActiveMQ offers the power and flexibility to support any messaging use-case.",
2023
websiteUrl = "https://activemq.apache.org/"
2124
).insert()
2225
}
23-
2426
@ChangeSet(
25-
order = "002",
26-
id = "002-add_correct_activemq_candidate_urls",
27+
order = "003",
28+
id = "003-add_new_activemq_versions_and_update_default",
2729
author = "xshyamx"
2830
)
29-
def migration002(implicit db: MongoDatabase): Document = {
31+
def migration003(implicit db: MongoDatabase): Document = {
3032
List(
31-
"5.16.2",
32-
"5.16.1",
33-
"5.16.0",
34-
"5.15.15",
35-
"5.15.14",
36-
"5.15.13",
37-
"5.15.12",
38-
"5.15.11",
39-
"5.15.10",
40-
"5.15.9",
41-
"5.15.8",
42-
"5.15.7",
43-
"5.15.6",
44-
"5.15.5",
45-
"5.15.4",
46-
"5.15.3",
47-
"5.15.2",
48-
"5.15.1",
49-
"5.15.0",
50-
"5.14.5",
51-
"5.14.4",
52-
"5.14.3",
53-
"5.14.2",
54-
"5.14.1",
55-
"5.14.0",
56-
"5.13.4",
57-
"5.13.3",
58-
"5.13.2",
59-
"5.13.1",
60-
"5.13.0",
61-
"5.12.2",
62-
"5.12.1",
63-
"5.12.0",
64-
"5.11.3",
65-
"5.11.2",
66-
"5.11.1",
67-
"5.11.0",
68-
"5.10.2",
69-
"5.10.1",
70-
"5.10.0",
71-
"5.9.1"
33+
"5.17.1",
34+
"5.17.0",
35+
"5.16.5",
36+
"5.16.4",
37+
"5.16.3"
7238
).map(
7339
version =>
7440
Version(
75-
candidate = "activemq",
41+
candidate = CandidateName,
7642
version = version,
7743
url =
7844
s"https://archive.apache.org/dist/activemq/$version/apache-activemq-$version-bin.zip"
7945
)
8046
)
47+
.validate()
8148
.insert()
82-
setCandidateDefault("activemq", "5.16.2")
49+
setCandidateDefault(CandidateName, "5.17.1")
8350
}
51+
8452
}

src/main/scala/io/sdkman/changelogs/JMeterMigration.scala

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,20 @@ class JMeterMigration {
2323
}
2424

2525
@ChangeSet(
26-
order = "003",
27-
id = "003-add_latest_jmeter_candidate_urls",
26+
order = "005",
27+
id = "005-add_5.5_jmeter_candidate",
2828
author = "xshyamx"
2929
)
30-
def migration003(implicit db: MongoDatabase): List[Version] = {
31-
List(
32-
"5.4.3",
33-
"5.4.2"
34-
).map(
35-
version =>
36-
Version(
37-
candidate = "jmeter",
38-
version = version,
39-
url =
40-
s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip"
41-
)
42-
)
43-
.validate()
30+
def migration005(implicit db: MongoDatabase): Unit = {
31+
val version = "5.5"
32+
Version(
33+
candidate = "jmeter",
34+
version = version,
35+
url =
36+
s"https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-$version.zip"
37+
).validate()
4438
.insert()
45-
}
46-
@ChangeSet(
47-
order = "004",
48-
id = "004-update-default-jmeter-version",
49-
author = "xshyamx"
50-
)
51-
def migration004(implicit db: MongoDatabase): Document = {
52-
setCandidateDefault("jmeter", "5.4.3")
39+
.asCandidateDefault()
5340
}
5441

5542
}

src/main/scala/io/sdkman/changelogs/MyBatisMigrations.scala

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,21 @@ class MyBatisMigrations {
2222
websiteUrl = "https://mybatis.org/migrations/"
2323
).insert()
2424
}
25-
2625
@ChangeSet(
27-
order = "003",
28-
id = "003-add_non_bundle_mybatis_migrations",
26+
order = "004",
27+
id = "004-add_latest_mybatis_migrations",
2928
author = "xshyamx"
3029
)
31-
def migration003(implicit db: MongoDatabase): Seq[Version] = {
32-
List(
33-
"3.2.1",
34-
"3.2.0",
35-
"3.1.0"
36-
).map(
37-
version =>
38-
Version(
39-
candidate = CandidateName,
40-
version = version,
41-
url =
42-
s"https://github.com/mybatis/migrations/releases/download/mybatis-migrations-$version/mybatis-migrations-$version.zip"
43-
)
44-
)
45-
.validate()
30+
def migration004(implicit db: MongoDatabase): Unit = {
31+
val version = "3.3.10"
32+
Version(
33+
candidate = CandidateName,
34+
version = version,
35+
url =
36+
s"https://github.com/mybatis/migrations/releases/download/mybatis-migrations-$version/mybatis-migrations-$version-bundle.zip"
37+
).validate()
4638
.insert()
39+
.asCandidateDefault()
4740
}
41+
4842
}

0 commit comments

Comments
 (0)