sbt-scala-native 0.3.3 and sbt 1.0
turbolent opened this issue · 1 comments
turbolent commented
I'm trying to get my code working with Scala Native and followed sbt-crossproject's README:
I rewrote my build.sbt
file and added the sbt-crossproject and sbt-scala-native plugins to project/plugins.sbt
:
addSbtPlugin("org.scala-native" % "sbt-crossproject" % "0.2.2")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.3")
I also set sbt.version=1.0.1
in project/build.properties
.
Running sbt I get:
[warn] module not found: org.scala-native#sbt-scala-native;0.3.3
[warn] ==== typesafe-ivy-releases: tried
[warn] https://repo.typesafe.com/typesafe/ivy-releases/org.scala-native/sbt-scala-native/scala_2.12/sbt_1.0//0.3.3/ivys/ivy.xml
[warn] ==== sbt-plugin-releases: tried
[warn] https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-native/sbt-scala-native/scala_2.12/sbt_1.0//0.3.3/ivys/ivy.xml
[warn] ==== local: tried
[warn] /Users/bastian/.ivy2/local/org.scala-native/sbt-scala-native/scala_2.12/sbt_1.0//0.3.3/ivys/ivy.xml
[warn] ==== public: tried
[warn] https://repo1.maven.org/maven2/org/scala-native/sbt-scala-native_2.12_1.0/0.3.3/sbt-scala-native-0.3.3.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-native#sbt-scala-native;0.3.3: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] org.scala-native:sbt-scala-native:0.3.3 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.scala-native:sbt-scala-native:0.3.3 (scalaVersion=2.12, sbtVersion=1.0) (/Users/bastian/projects/question-parser/project/plugins.sbt#L3-4)
[warn] +- default:question-parser-build:0.1-SNAPSHOT (scalaVersion=2.12, sbtVersion=1.0)
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.scala-native#sbt-scala-native;0.3.3: not found
It looks like sbt-crossproject is published for Scala 2.12 and sbt 1.0,
but sbt-scala-native is not.
sjrd commented
That's right. See scala-native/scala-native#915 which tracks sbt 1.x support for sbt-scala-native. sbt-crossproject already supports it.