Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add jextract candidate #695

Merged
merged 1 commit into from
Aug 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/main/scala/io/sdkman/changelogs/JExtractMigrations.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package io.sdkman.changelogs

import com.github.mongobee.changeset.{ChangeLog, ChangeSet}
import com.mongodb.client.MongoDatabase

@ChangeLog(order = "087")
class JExtractMigrations {

@ChangeSet(
order = "001",
id = "001_add_jextract_candidate",
author = "helpermethod"
)
def migration001(implicit db: MongoDatabase) =
Candidate(
candidate = "jextract",
name = "Jextract",
description =
"Jextract mechanically generates Java bindings from native library headers. This is an early access build from OpenJDK Jextract which is part of Code Tools",
websiteUrl = "https://jdk.java.net/jextract/"
).insert()

@ChangeSet(
order = "002",
id = "002_add_jextract_22-jextract+5-33",
author = "helpermethod"
)
def migration002(implicit db: MongoDatabase): Unit = {
List(
(Linux64, "linux-x64"),
(MacARM64, "macos-aarch64"),
(MacOSX, "macos-x64"),
(Windows, "windows-x64")
).map {
case (platform, platformIdentifier) =>
Version(
candidate = "jextract",
version = "22+5-33",
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()
}
}
}
Loading