Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Jetty #694

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions src/main/scala/io/sdkman/changelogs/JettyMigrations.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package io.sdkman.changelogs

import com.github.mongobee.changeset.{ChangeLog, ChangeSet}
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",
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()
.insert()
}

@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()
}
}
Loading