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

Upgraded to Tomcat November release #674

Closed
Closed
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
79 changes: 40 additions & 39 deletions src/main/scala/io/sdkman/changelogs/TomcatMigration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ import org.bson.Document

@ChangeLog(order = "038")
class TomcatMigration {

@ChangeSet(
order = "012",
id = "012-update_tomcat_versions",
order = "014",
id = "014-update_tomcat_versions",
author = "stefanpenndorf"
)
def migration012(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M5")
def migration014(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M7")

List(
"8" -> "8.5.89",
"9" -> "9.0.75",
"10" -> "10.1.9",
"11" -> "11.0.0-M6"
"8" -> "8.5.91",
"8" -> "8.5.92",
"9" -> "9.0.78",
"9" -> "9.0.79",
"10" -> "10.1.11",
"10" -> "10.1.12",
"11" -> "11.0.0-M10"
).map {
case (series: String, version: String) =>
Version(
Expand All @@ -30,22 +34,22 @@ class TomcatMigration {
}
.validate()
.insert()
setCandidateDefault("tomcat", "10.1.9")
setCandidateDefault("tomcat", "10.1.12")
}

@ChangeSet(
order = "013",
id = "013-update_tomcat_versions",
order = "015",
id = "015-update_tomcat_versions",
author = "stefanpenndorf"
)
def migration013(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M6")
def migration015(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M10")

List(
"8" -> "8.5.90",
"9" -> "9.0.76",
"10" -> "10.1.10",
"11" -> "11.0.0-M7"
"8" -> "8.5.94",
"9" -> "9.0.81",
"10" -> "10.1.14",
"11" -> "11.0.0-M12"
).map {
case (series: String, version: String) =>
Version(
Expand All @@ -57,25 +61,22 @@ class TomcatMigration {
}
.validate()
.insert()
setCandidateDefault("tomcat", "10.1.10")
setCandidateDefault("tomcat", "10.1.14")
}

@ChangeSet(
order = "014",
id = "014-update_tomcat_versions",
order = "016",
id = "016-update_tomcat_versions",
author = "stefanpenndorf"
)
def migration014(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M7")
def migration016(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M12")

List(
"8" -> "8.5.91",
"8" -> "8.5.92",
"9" -> "9.0.78",
"9" -> "9.0.79",
"10" -> "10.1.11",
"10" -> "10.1.12",
"11" -> "11.0.0-M10"
"8" -> "8.5.96",
"9" -> "9.0.83",
"10" -> "10.1.16",
"11" -> "11.0.0-M14"
).map {
case (series: String, version: String) =>
Version(
Expand All @@ -87,22 +88,22 @@ class TomcatMigration {
}
.validate()
.insert()
setCandidateDefault("tomcat", "10.1.12")
setCandidateDefault("tomcat", "10.1.16")
}

@ChangeSet(
order = "015",
id = "015-update_tomcat_versions",
order = "017",
id = "017-update_tomcat_versions",
author = "stefanpenndorf"
)
def migration015(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M10")
def migration017(implicit db: MongoDatabase): Document = {
removeVersion("tomcat", "11.0.0-M14")

List(
"8" -> "8.5.94",
"9" -> "9.0.81",
"10" -> "10.1.14",
"11" -> "11.0.0-M12"
"8" -> "8.5.98",
"9" -> "9.0.85",
"10" -> "10.1.18",
"11" -> "11.0.0-M16"
).map {
case (series: String, version: String) =>
Version(
Expand All @@ -114,7 +115,7 @@ class TomcatMigration {
}
.validate()
.insert()
setCandidateDefault("tomcat", "10.1.14")
setCandidateDefault("tomcat", "10.1.18")
}

}
Loading