Skip to content

Commit b7c95a1

Browse files
olamymarc0der
authored andcommitted
Upgrade to Jetty 10.0.24, 11.0.24 and 12.0.14
Signed-off-by: Olivier Lamy <[email protected]>
1 parent 79109de commit b7c95a1

File tree

1 file changed

+18
-51
lines changed

1 file changed

+18
-51
lines changed

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

Lines changed: 18 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,62 +5,29 @@ import com.mongodb.client.MongoDatabase
55

66
@ChangeLog(order = "086")
77
class JettyMigrations {
8-
@ChangeSet(
9-
order = "001",
10-
id = "001-add_jetty_candidate",
11-
author = "olamy"
12-
)
13-
def migration001(implicit db: MongoDatabase) = {
14-
Candidate(
15-
candidate = "jetty",
16-
name = "Eclipse Jetty",
17-
description =
18-
"Eclipse Jetty provides a highly scalable and memory-efficient web server and servlet container, supporting many protocols such as HTTP/3,2,1 and WebSocket",
19-
websiteUrl = "https://jetty.org/"
20-
).insert()
21-
22-
}
23-
24-
@ChangeSet(
25-
order = "002",
26-
id = "002-add_jetty_10.0.21",
27-
author = "olamy"
28-
)
29-
def migration002(implicit db: MongoDatabase) = {
30-
Version(
31-
"jetty",
32-
"10.0.21",
33-
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/10.0.21/jetty-home-10.0.21.zip"
34-
).validate()
35-
.insert()
36-
}
378

389
@ChangeSet(
39-
order = "003",
40-
id = "003-add_jetty_11.0.21",
10+
order = "005",
11+
id = "005-update_jetty_versions",
4112
author = "olamy"
4213
)
43-
def migration003(implicit db: MongoDatabase) = {
44-
Version(
45-
"jetty",
46-
"11.0.21",
47-
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/11.0.21/jetty-home-11.0.21.zip"
48-
).validate()
14+
def migration005(implicit db: MongoDatabase) = {
15+
List(
16+
"10" -> "10.0.24",
17+
"11" -> "11.0.24",
18+
"12" -> "12.0.14"
19+
).map {
20+
case (series: String, version: String) =>
21+
Version(
22+
candidate = "jetty",
23+
version = version,
24+
url =
25+
s"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$version/jetty-home-$version.zip"
26+
)
27+
}
28+
.validate()
4929
.insert()
50-
}
30+
setCandidateDefault("jetty", "12.0.14")
5131

52-
@ChangeSet(
53-
order = "004",
54-
id = "004-add_jetty_12.0.9",
55-
author = "olamy"
56-
)
57-
def migration004(implicit db: MongoDatabase) = {
58-
Version(
59-
"jetty",
60-
"12.0.9",
61-
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.9/jetty-home-12.0.9.zip"
62-
).validate()
63-
.insert()
64-
.asCandidateDefault()
6532
}
6633
}

0 commit comments

Comments
 (0)