Skip to content

Commit cd3f53c

Browse files
Add current tomcat versions and remove EOL ones (sdkman#628)
1 parent 965d920 commit cd3f53c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,36 @@ class TomcatMigration {
7272
).validate()
7373
.insert()
7474
.asCandidateDefault()
75+
76+
@ChangeSet(
77+
order = "010",
78+
id = "010-update_tomcat_versions",
79+
author = "stefanpenndorf"
80+
)
81+
def migration010(implicit db: MongoDatabase): Document = {
82+
removeVersion("tomcat", "10.0.0-M10")
83+
removeVersion("tomcat", "10.1.0-M8")
84+
85+
List(
86+
"8" -> "8.5.86",
87+
"8" -> "8.5.87",
88+
"9" -> "9.0.65",
89+
"9" -> "9.0.72",
90+
"9" -> "9.0.73",
91+
"10" -> "10.1.6",
92+
"10" -> "10.1.7",
93+
"11" -> "11.0.0-M3"
94+
).map {
95+
case (series: String, version: String) =>
96+
Version(
97+
candidate = "tomcat",
98+
version = version,
99+
url =
100+
s"https://archive.apache.org/dist/tomcat/tomcat-$series/v$version/bin/apache-tomcat-$version.zip"
101+
)
102+
}
103+
.validate()
104+
.insert()
105+
setCandidateDefault("tomcat", "10.1.7")
106+
}
75107
}

0 commit comments

Comments
 (0)