Skip to content

Commit 1df4794

Browse files
helpermethodOliver Weiler
andauthored
chore: Add jextract 22.ea.6 (#716)
Co-authored-by: Oliver Weiler <[email protected]>
1 parent 8d966fa commit 1df4794

File tree

1 file changed

+8
-75
lines changed

1 file changed

+8
-75
lines changed

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

Lines changed: 8 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -5,97 +5,30 @@ import com.mongodb.client.MongoDatabase
55

66
@ChangeLog(order = "087")
77
class JExtractMigrations {
8-
9-
@ChangeSet(
10-
order = "001",
11-
id = "001_add_jextract_candidate",
12-
author = "helpermethod"
13-
)
14-
def migration001(implicit db: MongoDatabase) =
15-
Candidate(
16-
candidate = "jextract",
17-
name = "Jextract",
18-
description =
19-
"Jextract mechanically generates Java bindings from native library headers. This is an early access build from OpenJDK Jextract which is part of Code Tools",
20-
websiteUrl = "https://jdk.java.net/jextract/"
21-
).insert()
22-
238
@ChangeSet(
24-
order = "002",
25-
id = "002_add_jextract_22-jextract+5-33",
26-
author = "helpermethod"
27-
)
28-
def migration002(implicit db: MongoDatabase): Unit = {
29-
List(
30-
(Linux64, "linux-x64"),
31-
(MacARM64, "macos-aarch64"),
32-
(MacOSX, "macos-x64"),
33-
(Windows, "windows-x64")
34-
).map {
35-
case (platform, platformIdentifier) =>
36-
Version(
37-
candidate = "jextract",
38-
version = "22+5-33",
39-
url =
40-
s"https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_${platformIdentifier}_bin.tar.gz",
41-
platform = platform
42-
).validate()
43-
.insert()
44-
}
45-
}
46-
47-
@ChangeSet(
48-
order = "003",
49-
id = "003_add_jextract_candidate",
50-
author = "helpermethod"
51-
)
52-
def migration003(implicit db: MongoDatabase): Unit = {
53-
Candidate(
54-
candidate = "jextract",
55-
name = "Jextract",
56-
description =
57-
"Jextract mechanically generates Java bindings from native library headers. This is an early access build from OpenJDK Jextract which is part of Code Tools",
58-
websiteUrl = "https://jdk.java.net/jextract/"
59-
).insert()
60-
}
61-
62-
@ChangeSet(
63-
order = "004",
64-
id = "004_remove_unsupported_versions",
65-
author = "helpermethod"
66-
)
67-
def migration004(implicit db: MongoDatabase): Unit = {
68-
List("21-jextract+1-2", "20-jextract+1-2", "19-jextract+2-3")
69-
.foreach { version =>
70-
List(Linux64, MacARM64, MacOSX, Windows).foreach { platform =>
71-
removeVersion("jextract", version, platform)
72-
}
73-
}
74-
}
75-
76-
@ChangeSet(
77-
order = "005",
78-
id = "005_improve_versioning",
9+
order = "006",
10+
id = "006_add-jextract-22.6",
7911
author = "helpermethod"
8012
)
8113
def migration005(implicit db: MongoDatabase): Unit = {
82-
removeAllVersions("jextract")
83-
8414
List(
15+
(LinuxARM64, "linux-aarch64"),
8516
(Linux64, "linux-x64"),
8617
(MacARM64, "macos-aarch64"),
8718
(MacOSX, "macos-x64"),
8819
(Windows, "windows-x64")
89-
).map {
20+
).foreach {
9021
case (platform, platformIdentifier) =>
9122
Version(
9223
candidate = "jextract",
93-
version = "22.ea.5",
24+
version = "22.ea.6",
9425
url =
95-
s"https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_${platformIdentifier}_bin.tar.gz",
26+
s"https://download.java.net/java/early_access/jextract/22/6/openjdk-22-jextract+6-47_${platformIdentifier}_bin.tar.gz",
9627
platform = platform
9728
).validate()
9829
.insert()
9930
}
31+
32+
setCandidateDefault("jextract", "22.ea.6")
10033
}
10134
}

0 commit comments

Comments
 (0)