@@ -49,18 +49,54 @@ class JdkMissionControlMigrations {
4949
5050 @ ChangeSet (
5151 order = " 003" ,
52- id = " 003-add-zulu-9.1.1 " ,
52+ id = " 003-add-latest-version-of-each-distribution " ,
5353 author = " sciencesakura"
5454 )
55- def migrate003 (implicit db : MongoDatabase ): Unit =
56- Map (
57- Linux64 -> " zmc9.1.1.35-ca-linux_x64.tar.gz" ,
58- LinuxARM64 -> " zmc9.1.1.35-ca-linux_aarch64.tar.gz" ,
59- MacOSX -> " zmc9.1.1.35-ca-macos_x64.tar.gz" ,
60- MacARM64 -> " zmc9.1.1.35-ca-macos_aarch64.tar.gz" ,
61- Windows -> " zmc9.1.1.35-ca-win_x64.zip"
55+ def migrate003 (implicit db : MongoDatabase ): Unit = {
56+ List (
57+ (" adpt" , Linux64 , " org.openjdk.jmc-9.1.1-linux.gtk.x86_64.tar.gz" ),
58+ (" adpt" , LinuxARM64 , " org.openjdk.jmc-9.1.1-linux.gtk.aarch64.tar.gz" ),
59+ (" adpt" , MacOSX , " org.openjdk.jmc-9.1.1-macosx.cocoa.x86_64.tar.gz" ),
60+ (" adpt" , MacARM64 , " org.openjdk.jmc-9.1.1-macosx.cocoa.aarch64.tar.gz" ),
61+ (" adpt" , Windows , " org.openjdk.jmc-9.1.1-win32.win32.x86_64.zip" ),
62+ (" amzn" , Linux64 , " amazon-corretto-jmc-8.1.1.1-linux-x64.tar.gz" ),
63+ (" amzn" , MacOSX , " amazon-corretto-jmc-8.1.1.1-mac-x64.tar.gz" ),
64+ (" amzn" , Windows , " amazon-corretto-jmc-8.1.1.1-windows-x64.zip" ),
65+ (" librca" , Linux64 , " bellsoft-lmc8.3.0-linux-amd64.tar.gz" ),
66+ (" librca" , MacOSX , " bellsoft-lmc8.3.0-macos-amd64.tar.gz" ),
67+ (" librca" , MacARM64 , " bellsoft-lmc8.3.0-macos-aarch64.tar.gz" ),
68+ (" librca" , Windows , " bellsoft-lmc8.3.0-windows-amd64.zip" ),
69+ (" zulu" , Linux64 , " zmc9.1.1.35-ca-linux_x64.tar.gz" ),
70+ (" zulu" , LinuxARM64 , " zmc9.1.1.35-ca-linux_aarch64.tar.gz" ),
71+ (" zulu" , MacOSX , " zmc9.1.1.35-ca-macos_x64.tar.gz" ),
72+ (" zulu" , MacARM64 , " zmc9.1.1.35-ca-macos_aarch64.tar.gz" ),
73+ (" zulu" , Windows , " zmc9.1.1.35-ca-win_x64.zip" )
6274 ).map {
63- case (platform, binary) =>
75+ case (" adpt" , platform, binary) =>
76+ Version (
77+ " jmc" ,
78+ " 9.1.1-adpt" ,
79+ s " https://github.com/adoptium/jmc-build/releases/download/9.1.1/ $binary" ,
80+ platform,
81+ Some (AdoptOpenJDK )
82+ )
83+ case (" amzn" , platform, binary) =>
84+ Version (
85+ " jmc" ,
86+ " 8.1.1.1-amzn" ,
87+ s " https://corretto.aws/downloads/resources/jmc/8.1.1.1/ $binary" ,
88+ platform,
89+ Some (Amazon )
90+ )
91+ case (" librca" , platform, binary) =>
92+ Version (
93+ " jmc" ,
94+ " 8.3.0-librca" ,
95+ s " https://download.bell-sw.com/lmc/8.3.0/ $binary" ,
96+ platform,
97+ Some (Liberica )
98+ )
99+ case (" zulu" , platform, binary) =>
64100 Version (
65101 " jmc" ,
66102 " 9.1.1-zulu" ,
@@ -69,8 +105,8 @@ class JdkMissionControlMigrations {
69105 Some (Zulu )
70106 )
71107 }
72- .toList
73108 .validate()
74109 .insert()
75-
110+ setCandidateDefault(" jmc" , " 9.1.1-zulu" )
111+ }
76112}
0 commit comments