Skip to content

Commit 79109de

Browse files
authored
chore: Improve jextract versioning (#707)
1 parent 729305f commit 79109de

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,30 @@ class JExtractMigrations {
7272
}
7373
}
7474
}
75+
76+
@ChangeSet(
77+
order = "005",
78+
id = "005_improve_versioning",
79+
author = "helpermethod"
80+
)
81+
def migration005(implicit db: MongoDatabase): Unit = {
82+
removeAllVersions("jextract")
83+
84+
List(
85+
(Linux64, "linux-x64"),
86+
(MacARM64, "macos-aarch64"),
87+
(MacOSX, "macos-x64"),
88+
(Windows, "windows-x64")
89+
).map {
90+
case (platform, platformIdentifier) =>
91+
Version(
92+
candidate = "jextract",
93+
version = "22.ea.5",
94+
url =
95+
s"https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_${platformIdentifier}_bin.tar.gz",
96+
platform = platform
97+
).validate()
98+
.insert()
99+
}
100+
}
75101
}

0 commit comments

Comments
 (0)