Closed He-Pin closed 6 months ago
Yes, unfortunately scala native 0.5 is not yet out, so the current way to set it up for gears is to locally publish it. I wrote some guides in CONTRIBUTING.md; but the tl;dr is if you're on Unix a git submodule update
followed by dependencies/publish-deps.sh
should prepare all the dependencies for you.
Scala Native 0.5.0 snapshots are available if you configure the snapshot resolver.
[error] (rootNative / update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:munit_native0.5.0-SNAPSHOT_3:1.0.0-M10+16-4e2ab919-SNAPSHOT
[error] Not found
[error] Not found
[error] not found: C:\Users\hepin\.ivy2\local\org.scalameta\munit_native0.5.0-SNAPSHOT_3\1.0.0-M10+16-4e2ab919-SNAPSHOT\ivys\ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/scalameta/munit_native0.5.0-SNAPSHOT_3/1.0.0-M10+16-4e2ab919-SNAPSHOT/munit_native0.5.0-SNAPSHOT_3-1.0.0-M10+16-4e2ab919-SNAPSHOT.pom
[error] not found: https://oss.sonatype.org/content/repositories/snapshots/org/scalameta/munit_native0.5.0-SNAPSHOT_3/1.0.0-M10+16-4e2ab919-SNAPSHOT/munit_native0.5.0-SNAPSHOT_3-1.0.0-M10+16-4e2ab919-SNAPSHOT.pom
[error] Total time: 20 s, completed 2024年1月24日 22:23:48
@armanbilge Munit is not published.
ThisBuild / resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
I plan to release 0.2 alongside SN 0.5.0 when the latter is available.
building the dependencies locally worked for me, thanks! One issue I had was with the nix flake when running nix develop
- I'm not sure why, but the SBT override wasn't being picked up.
Explicitly setting the JDK as a dependency for the dev shell solved this for me - e.g:
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
jdk21
# Scala deps
(sbt.override { jre = jdk21; })
....
etc
It's published ;)
I got errors when resolving the dependencies.