From b961049ce547b38960cf998b3ddc7508c71f24a3 Mon Sep 17 00:00:00 2001 From: tech189 Date: Thu, 6 Jan 2022 13:14:40 +0000 Subject: [PATCH] scala: Update to version 3.1.0 (#3159) * scala: update to version 3.1.0 * Add note about scala2 * Improve note about migration Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/scala.json | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/bucket/scala.json b/bucket/scala.json index 690c6ea489..813e76c52a 100644 --- a/bucket/scala.json +++ b/bucket/scala.json @@ -1,30 +1,34 @@ { - "version": "2.13.7", + "version": "3.1.0", "description": "A modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way.", "homepage": "https://www.scala-lang.org/", "license": "BSD-3-Clause", + "notes": [ + "Scala 3 has been installed. If you haven't migrated yet, install versions/scala2.", + "Or follow the migration guide: https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html" + ], "suggest": { "JDK": "java/openjdk" }, - "url": "https://downloads.typesafe.com/scala/2.13.7/scala-2.13.7.zip", - "hash": "a52cd39d0c13748b36a389b87ffbf5c4b6bc098af9ea745cf3c874867fd91976", - "extract_dir": "scala-2.13.7", + "url": "https://github.com/lampepfl/dotty/releases/download/3.1.0/scala3-3.1.0.zip", + "hash": "2e8e19784779870c0b6e74c6ec530a6a191b470c1c56a20f207977232c88995b", + "extract_dir": "scala3-3.1.0", "bin": [ - "bin\\fsc.bat", "bin\\scala.bat", "bin\\scalac.bat", - "bin\\scaladoc.bat", - "bin\\scalap.bat" + "bin\\scaladoc.bat" ], "env_set": { "SCALA_HOME": "$dir" }, "checkver": { - "url": "https://www.scala-lang.org/download/scala2.html", - "regex": "scala-([\\d.]+)\\.zip" + "github": "https://github.com/lampepfl/dotty/" }, "autoupdate": { - "url": "https://downloads.typesafe.com/scala/$version/scala-$version.zip", - "extract_dir": "scala-$version" + "url": "https://github.com/lampepfl/dotty/releases/download/$version/scala3-$version.zip", + "hash": { + "url": "$baseurl/sha256sum.txt" + }, + "extract_dir": "scala3-$version" } }