sbt

IntelliJ Idea 14: cannot resolve symbol spark

岁酱吖の 提交于 2020-01-01 03:18:04
问题 I made a dependency of Spark which worked in my first project. But when I try to make a new project with Spark, my SBT does not import the external jars of org.apache.spark. Therefore IntelliJ Idea gives the error that it "cannot resolve symbol". I already tried to make a new project from scratch and use auto-import but none works. When I try to compile I get the messages that "object apache is not a member of package org". My build.sbt looks like this: name := "hello" version := "1.0"

Local dependencies resolved by SBT but not by Play! Framework

筅森魡賤 提交于 2020-01-01 03:09:10
问题 I'm trying to use banana-RDF, a locally published library (published using SBT's publish-local ) from a Play! Framework project, but when running compile from Play's console, the wanted library is not resolved, when using compile from SBT's console everything goes fine. I find this behavior pretty weird as Play uses SBT to resolve dependencies. By the way, I'm using the 0.12.3 version of SBT in my Play project. The error I'm getting when compiling with Play is pretty basic: [warn] module not

libraryDependencies for com.eed3si9n#sbt-assembly;0.13.0: not found

北战南征 提交于 2020-01-01 03:04:10
问题 I am building a sbt plugin and want to reference assembly task in the sbt-assembly plugin ( to be dependent on my task) to do this i need to reference it as a library ( as opposed to a plugin), and somehow sbt is not able to resolve it as a libraryDepdendencies this is what my sbt looks like sbtPlugin := true name := "my-sbt-plugin" scalaVersion := "2.10.6" sbtVersion := "0.13.0" resolvers ++= Seq(Resolver.sbtPluginRepo("releases"), Resolver.sbtPluginRepo("snapshots")) libraryDependencies ++=

libraryDependencies for com.eed3si9n#sbt-assembly;0.13.0: not found

若如初见. 提交于 2020-01-01 03:03:07
问题 I am building a sbt plugin and want to reference assembly task in the sbt-assembly plugin ( to be dependent on my task) to do this i need to reference it as a library ( as opposed to a plugin), and somehow sbt is not able to resolve it as a libraryDepdendencies this is what my sbt looks like sbtPlugin := true name := "my-sbt-plugin" scalaVersion := "2.10.6" sbtVersion := "0.13.0" resolvers ++= Seq(Resolver.sbtPluginRepo("releases"), Resolver.sbtPluginRepo("snapshots")) libraryDependencies ++=

how to make scalatest generate html report through sbt

你。 提交于 2020-01-01 02:51:12
问题 The way to do this for specs2 based test in sbt is (testOptions in Test) += Tests.Argument(TestFrameworks.Specs2, "html") but how about scalatest? I've done lots of Google search, but cannot find a good explanation/solution. 回答1: so two things I need to do... I. use any scalatest artifact after 2.0.M5b. For me, I added this dependency, org.scalatest" %% "scalatest" % "2.0.M6" % "test->*" excludeAll ( ExclusionRule(organization="org.junit", name="junit") ) "test->*" is necessary, otherwise

i really would like sbt and its console to work under cygwin any way you think it can be done?

你离开我真会死。 提交于 2020-01-01 02:29:27
问题 i have this issue (https://github.com/sbt/sbt/issues/562) basically when I try to get a console it says: [ERROR] Failed to construct terminal; falling back to unsupportedjava.lang.IllegalArgumentException: Invalid terminal type: jline.UnixTerminal also you cant use backspace you basically cannot use sbt in cygwin (in dos is fine but cygwin is a much nicer environment) and have voiced my concern there i have tried several workaround i found on the net but they are all for old releases and no

SBT Config extend vs DefaultSettings

我的未来我决定 提交于 2019-12-31 03:06:29
问题 If I define an SBT config with val MyConfig = config("my") extend Test is that basically the same as doing val MyConfig = config("my") val mySettings = inConfig(MyConfig)(Defaults.testSettings) and then importing mySettings inside a build definition ? 回答1: No, calling extend method is not the same thing as calling inConfig . extend just returns a new configuration with passed in configurations prepended extendsConfigs , and it will not introduce any new settings. When you add MyConfig into

How to import package into Scala REPL?

六月ゝ 毕业季﹏ 提交于 2019-12-31 03:06:14
问题 How do I import a package into Scala's REPL? I am trying to import this package called funsets which has an object named "FunSets". I tried several variations of import funsets._ and import funsets._; etc but it is still not importing the functions and object in the package. 回答1: One way is to compile the "scala classes" and put those in classpath. Example, 1) Say you have a class funsets.FunSets.scala package funsets object FunSets { def fun = "very fun" } 2) Compile the class first using

How to use multiple versions of a library in Scala?

丶灬走出姿态 提交于 2019-12-30 09:29:32
问题 I am using a library say A in Scala which is dependent on version x.11 of another library say Z. Now, I am also using a library say B which is dependent on version x.31 of Z. This leads to compile error because we will have two versions of library Z, how can I use both libraries A and B in scala's sbt? Is there any way to specify it. 回答1: If completely replacing one dependency with a newer version happens to work, then Sparko's solution works. However, that isn't always the case. If you want

Reload app on custom file change in playframework

白昼怎懂夜的黑 提交于 2019-12-30 09:10:07
问题 In playframework there is auto-reload feature. It means that in development mode on each request play checks files on changes, and recompiles and reloads project if necessary. So, for example if I $ touch conf/routes , project will be reloaded on next request. I'd like to add some custom file to watch for. I believe watchSources setting contains list of files play is watching for. But it doesn't work for me. Consider, we want to add trigger file to watched sources. watchSources <+=