Skip to content

Commit

Permalink
Upgrade to Jetty 10.0.24, 11.0.24 and 12.0.14
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy authored and marc0der committed Oct 27, 2024
1 parent 79109de commit b7c95a1
Showing 1 changed file with 18 additions and 51 deletions.
69 changes: 18 additions & 51 deletions src/main/scala/io/sdkman/changelogs/JettyMigrations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,29 @@ import com.mongodb.client.MongoDatabase

@ChangeLog(order = "086")
class JettyMigrations {
@ChangeSet(
order = "001",
id = "001-add_jetty_candidate",
author = "olamy"
)
def migration001(implicit db: MongoDatabase) = {
Candidate(
candidate = "jetty",
name = "Eclipse Jetty",
description =
"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",
websiteUrl = "https://jetty.org/"
).insert()

}

@ChangeSet(
order = "002",
id = "002-add_jetty_10.0.21",
author = "olamy"
)
def migration002(implicit db: MongoDatabase) = {
Version(
"jetty",
"10.0.21",
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/10.0.21/jetty-home-10.0.21.zip"
).validate()
.insert()
}

@ChangeSet(
order = "003",
id = "003-add_jetty_11.0.21",
order = "005",
id = "005-update_jetty_versions",
author = "olamy"
)
def migration003(implicit db: MongoDatabase) = {
Version(
"jetty",
"11.0.21",
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/11.0.21/jetty-home-11.0.21.zip"
).validate()
def migration005(implicit db: MongoDatabase) = {
List(
"10" -> "10.0.24",
"11" -> "11.0.24",
"12" -> "12.0.14"
).map {
case (series: String, version: String) =>
Version(
candidate = "jetty",
version = version,
url =
s"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/$version/jetty-home-$version.zip"
)
}
.validate()
.insert()
}
setCandidateDefault("jetty", "12.0.14")

@ChangeSet(
order = "004",
id = "004-add_jetty_12.0.9",
author = "olamy"
)
def migration004(implicit db: MongoDatabase) = {
Version(
"jetty",
"12.0.9",
"https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.9/jetty-home-12.0.9.zip"
).validate()
.insert()
.asCandidateDefault()
}
}

0 comments on commit b7c95a1

Please sign in to comment.