portable-scala/sbt-crossproject

does not resolve sbt-native

antonkulaga opened this issue · 1 comments

In my sbt project it does not resolve sbt-native:

[error] coursier.ResolutionException: Encountered 5 error(s) in dependency resolution:
[error]     org.scala-native:test-interface_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/test-interface_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/test-interface_native0.3_2.12/0.3.6/test-interface_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:nativelib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/nativelib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/nativelib_native0.3_2.12/0.3.6/nativelib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:auxlib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/auxlib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/auxlib_native0.3_2.12/0.3.6/auxlib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:scalalib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/scalalib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/scalalib_native0.3_2.12/0.3.6/scalalib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:javalib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/javalib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/javalib_native0.3_2.12/0.3.6/javalib_native0.3_2.12-0.3.6.pom
[error] (treesNative / coursierResolutions) coursier.ResolutionException: Encountered 5 error(s) in dependency resolution:
[error]     org.scala-native:test-interface_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/test-interface_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/test-interface_native0.3_2.12/0.3.6/test-interface_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:nativelib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/nativelib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/nativelib_native0.3_2.12/0.3.6/nativelib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:auxlib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/auxlib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/auxlib_native0.3_2.12/0.3.6/auxlib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:scalalib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/scalalib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/scalalib_native0.3_2.12/0.3.6/scalalib_native0.3_2.12-0.3.6.pom
[error]     org.scala-native:javalib_native0.3_2.12:0.3.6:
[error]         not found:
[error]             /home/antonkulaga/.ivy2/local/org.scala-native/javalib_native0.3_2.12/0.3.6/ivys/ivy.xml
[error]             https://repo1.maven.org/maven2/org/scala-native/javalib_native0.3_2.12/0.3.6/javalib_native0.3_2.12-0.3.6.pom
[error] Total time: 7 s, completed Feb 18, 2018 5:12:00 PM

here is my build.sbt (sbt version 1.1.1)

val sharedSettings = Seq(scalaVersion := "2.12.4")

lazy val trees =
  // (4) select supported platforms
  crossProject(JVMPlatform, NativePlatform)
    .settings(sharedSettings)
    .jvmSettings(
		libraryDependencies += "org.spire-math" %% "clouseau" % "0.1.0",
		javaOptions += "-javaagent:/home/antonkulaga/Soft/clouseau_2.12-0.1.0.jar",	
		fork := true,
		resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/releases",
		libraryDependencies +=  "com.storm-enroute" %% "scalameter-core" % "0.8.2"
	)

lazy val treesJVM    = trees.jvm
lazy val treesNative = trees.native

here are my plugins.sbt:

addSbtPlugin("org.portable-scala" % "sbt-crossproject" % "0.3.1")
addSbtPlugin("org.scala-native"   % "sbt-scala-native" % "0.3.6") 
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.2")

Note: the resolution problem is not coursier-related, without coursier I get the same problem

Looks like it is Scala.native problem