From 469c4c60bc9c00d1629e0a5c972c825badeed656 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 24 Jul 2024 14:09:46 +0200 Subject: [PATCH 1/3] Small refactoring of GraalVM index computation --- src/Graalvm.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Graalvm.scala b/src/Graalvm.scala index b0f8151..909ca69 100644 --- a/src/Graalvm.scala +++ b/src/Graalvm.scala @@ -2,11 +2,11 @@ import Index.Os object Graalvm { + def majorVersions = Seq(17, 20, 21) + def fullIndex(ghToken: String): Index = { - val graalvmJdk17Index0 = index(ghToken, "17") - val graalvmJdk20Index0 = index(ghToken, "20") - val graalvmJdk21Index0 = index(ghToken, "21") - graalvmJdk17Index0 + graalvmJdk20Index0 + graalvmJdk21Index0 + val indices = majorVersions.map(v => index(ghToken, v.toString)) + indices.foldLeft(Index.empty)(_ + _) } def index( From a4f6f55d2bb02ac64942da181ac8367bfedf98d6 Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 24 Jul 2024 14:10:08 +0200 Subject: [PATCH 2/3] Add GraalVM 22 in index --- src/Graalvm.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graalvm.scala b/src/Graalvm.scala index 909ca69..196093e 100644 --- a/src/Graalvm.scala +++ b/src/Graalvm.scala @@ -2,7 +2,7 @@ import Index.Os object Graalvm { - def majorVersions = Seq(17, 20, 21) + def majorVersions = Seq(17, 20, 21, 22) def fullIndex(ghToken: String): Index = { val indices = majorVersions.map(v => index(ghToken, v.toString)) From 66a57be32a5c75d79413bd743ca104cee08abd8d Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 24 Jul 2024 14:11:23 +0200 Subject: [PATCH 3/3] Updates --- src/GenerateIndex.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GenerateIndex.scala b/src/GenerateIndex.scala index 4a77981..963d668 100644 --- a/src/GenerateIndex.scala +++ b/src/GenerateIndex.scala @@ -1,7 +1,7 @@ //> using scala 3 -//> using dep com.softwaremill.sttp.client3::core:3.9.5 -//> using dep com.lihaoyi::ujson:3.2.0 -//> using dep com.lihaoyi::os-lib:0.9.3 +//> using dep com.softwaremill.sttp.client3::core:3.9.7 +//> using dep com.lihaoyi::ujson:4.0.0 +//> using dep com.lihaoyi::os-lib:0.10.3 //> using options -Wunused:all -deprecation object GenerateIndex {