Skip to content

Commit baf5fe1

Browse files
olamymarc0der
authored andcommitted
Add Jetty
Signed-off-by: Olivier Lamy <[email protected]>
1 parent f0a2b33 commit baf5fe1

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
package io.sdkman.changelogs
2+
3+
import com.github.mongobee.changeset.{ChangeLog, ChangeSet}
4+
import com.mongodb.client.MongoDatabase
5+
6+
@ChangeLog(order = "086")
7+
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+
}
37+
38+
@ChangeSet(
39+
order = "003",
40+
id = "003-add_jetty_11.0.21",
41+
author = "olamy"
42+
)
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()
49+
.insert()
50+
}
51+
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()
65+
}
66+
}

0 commit comments

Comments
 (0)