Skip to content

v1.8.4

Latest
Compare
Choose a tag to compare
@Gedochao Gedochao released this 15 Jul 09:45
· 11 commits to main since this release
46a5de6

(⚡️ experimental) publish support for the Sonatype Central Portal

This Scala CLI version adds support for publishing artifacts to the Sonatype Central Portal via its OSSRH Staging API.
It is once again possible to publish artifacts to Maven Central with Scala CLI.
Both stable and *-SNAPSHOT versions are handled.
The only configuration change necessary is to migrate the Sonatype namespace in the UI and regenerate credentials to the new Sonatype Central Portal, as per Sonatype instructions

scala-cli publish . --power

Added by @Gedochao in #3774, #3776, #3778, coursier/publish#128 and coursier/publish#127

Better support for the REPL with JDK 24+

When using the REPL with JDK 24 or newer, users should no longer see the warnings about restricted methods of java.lang.System being used.

scala-cli repl --jvm 24
# WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
# WARNING: sun.misc.Unsafe::objectFieldOffset has been called by scala.runtime.LazyVals$ (file:/Users/pchabelski/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala3-library_3/3.7.1/scala3-library_3-3.7.1.jar)
# WARNING: Please consider reporting this to the maintainers of class scala.runtime.LazyVals$
# WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
# Welcome to Scala 3.7.1 (24.0.1, Java OpenJDK 64-Bit Server VM).
# Type in expressions for evaluation. Or try :help.
#            
#
# scala> 

Note that the deprecated method from sun.misc.Unsafe warning is still present, and will only be addressed in Scala 3.8.0.

Added by @Gedochao in #3767

Features

  • publish command with Sonatype Central Portal OSSRH Staging API by @Gedochao in #3774
  • Add support for publishing with Scala CLI to Sonatype Central Portal by @Gedochao in #3776

Fixes

  • Prevent the REPL from warning about restricted java.lang.System API on JDK 24 by @Gedochao in #3767
  • fix for 3725, 3752, 3766 and 3769 by @philwalk in #3726

Documentation changes

Updates

Full Changelog: v1.8.3...v1.8.4