Skip to content

Commit

Permalink
chore: Improve jextract versioning (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
helpermethod authored Sep 20, 2024
1 parent 729305f commit 79109de
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/scala/io/sdkman/changelogs/JExtractMigrations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,30 @@ class JExtractMigrations {
}
}
}

@ChangeSet(
order = "005",
id = "005_improve_versioning",
author = "helpermethod"
)
def migration005(implicit db: MongoDatabase): Unit = {
removeAllVersions("jextract")

List(
(Linux64, "linux-x64"),
(MacARM64, "macos-aarch64"),
(MacOSX, "macos-x64"),
(Windows, "windows-x64")
).map {
case (platform, platformIdentifier) =>
Version(
candidate = "jextract",
version = "22.ea.5",
url =
s"https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_${platformIdentifier}_bin.tar.gz",
platform = platform
).validate()
.insert()
}
}
}

0 comments on commit 79109de

Please sign in to comment.