File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
src/main/scala/io/sdkman/changelogs/java Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ package io .sdkman .changelogs .java
2+
3+ import com .github .mongobee .changeset .{ChangeLog , ChangeSet }
4+ import com .mongodb .client .MongoDatabase
5+ import io .sdkman .changelogs .{
6+ Linux64 ,
7+ Windows ,
8+ Mandrel ,
9+ Version ,
10+ removeVersion ,
11+ hideVersion
12+ }
13+
14+ @ ChangeLog (order = " 035" )
15+ class MandrelMigrations {
16+
17+ @ ChangeSet (
18+ order = " 007" ,
19+ id = " 007-hide_mandrel-20_3_2_0-21_1_0_0-add_mandrel-20_3_3_0-21_2_0_0" ,
20+ author = " zakkak"
21+ )
22+ def migrate007 (implicit db : MongoDatabase ): Unit = {
23+ hideVersion(" java" , " 20.3.2.0-mandrel" )
24+ hideVersion(" java" , " 21.1.0.0-mandrel" )
25+ val platforms = List (
26+ (Linux64 , " linux-amd64" , " tar.gz" ),
27+ (Windows , " windows-amd64" , " zip" )
28+ )
29+ List (" 20.3.3.0" , " 21.2.0.0" )
30+ .map { version =>
31+ platforms.map {
32+ case (platform, mandrelPlatform, suffix) =>
33+ Version (
34+ candidate = " java" ,
35+ version = s " $version-mandrel " ,
36+ url =
37+ s " https://github.com/graalvm/mandrel/releases/download/mandrel- $version-Final/mandrel-java11- $mandrelPlatform- $version-Final. $suffix" ,
38+ platform = platform,
39+ vendor = Some (Mandrel )
40+ )
41+ }
42+ }
43+ .validate()
44+ .insert()
45+ }
46+
47+ }
You can’t perform that action at this time.
0 commit comments