sbt

Sbt 0.12.4+ required on project import

 ̄綄美尐妖づ 提交于 2019-12-23 06:48:28
问题 I'm currently reading the Play for Scala: Covers Play 2 book by Peter Hilton (publisher: Manning) , and trying to stick to the versions they've outlined in the book (Play version 2.1.1). I downloaded the new IntelliJ IDEA 14 CE app and installed it. I'm currently importing the project, and it's failing because it wants a version of sbt that is 0.12.4 or greater. This issue occurred in 13 the other day, but I haven't had time to resolve it, so please, no recommendations to go back to 13 :)

How to access Ivy directly, i.e. access dependency reports or execute Ivy commands?

元气小坏坏 提交于 2019-12-23 05:39:06
问题 SBT uses Ivy under the hood for dependencies. Ivy can generate lots of dependency reports. How can I get access to that via SBT? In general, if I want to use an Ivy command via SBT, how can I do it? Can I generate a POM from the SBT dependencies? UPDATE: My goal is to debug and manually fine tune problems, not to be part of any automated tasks UPDATE 2: To debug, I'd like to see the whole transitive dependency chain, not just the top level dependencies. 回答1: There are several options when

Strange exception in SBT test

家住魔仙堡 提交于 2019-12-23 05:26:34
问题 I am facing an issue with SBT (version 0.13.9). One of my ScalaTest tests fails not deterministic with EOFException . Stack trace: Exception in thread "Thread-155" Exception in thread "Thread-159" java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2601) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1319) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at sbt.React.react(ForkTests.scala:114) at sbt

sbt failed download in running play docker container

浪子不回头ぞ 提交于 2019-12-23 03:22:20
问题 I have successfully built my docker image for a play-java . But while trying to spawn a container for it with docker run -p 0.0.0.0:9000:9000 egima/play activator run sbt fails to download one particular dependency. The log looks like this: ==== Maven2 Local: tried file:/root/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.jar ==== Apache Repository: tried https://repository.apache.org/content/repositories/releases/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0.jar[0m

using SBT for multimodule project?

泄露秘密 提交于 2019-12-23 03:14:32
问题 How to use SBT to leverage multi module project. I have tried with the sbt-idea plugin but failed. what could be the reason for this 回答1: An integrated SBT + IDEA Scala Development Setup helped me. 回答2: Don't know about the IDEA plugin, but personally I took inspiration from the Akka project to create my own multi-module project: https://github.com/akka/akka Hope that's help ! 回答3: For now there is a very good sbt tutorial at its homepage. Here is the chapter providing details on Multi

Deduplication error in build.sbt when building a fat jar using sbt assembly

对着背影说爱祢 提交于 2019-12-23 02:42:20
问题 I'm trying to create a fat jar of a combination of spark and restlet framework, but I keep getting this deduplication error. This is the error for running sbt assembly : java.lang.RuntimeException: deduplicate: different file contents found in the following: /Users/ccd/.ivy2/cache/org.eclipse.jetty.orbit/javax.transaction/orbits/javax.transaction-1.1.1.v201105210645.jar:META-INF/ECLIPSEF.RSA /Users/ccd/.ivy2/cache/org.eclipse.jetty.orbit/javax.servlet/orbits/javax.servlet-3.0.0.v201112011016

sbt not resolving dependency; path correct except ${package.type} extension

家住魔仙堡 提交于 2019-12-23 02:36:37
问题 sbt (0.13.8) is failing to resolve the dependency in the following extremely simple build.sbt : organization := "edu.umass.cs.iesl" name := "nn-depparse" version := "0.1-SNAPSHOT" scalaVersion := "2.11.7" resolvers += "IESL snapshot repository" at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/snapshots/" libraryDependencies += "cc.factorie" %% "factorie" % "1.2-SNAPSHOT" parallelExecution := true For some reason it resolves the following path: https://dev-iesl.cs.umass.edu/nexus

License banners for Scala when using ENSIME

心不动则不痛 提交于 2019-12-23 02:26:07
问题 I'm trying to start using ENSIME for Scala development with SBT. How should I manage license headers? I used to use Copyright Wizard in Eclipse and that seemed fine. 回答1: Emacs has many ways to template, it really depends on what your workflow is. For copyright you might just want to add a copyright message to each new file opened. Last time I did this was with the skeleton package--- there are newer packages now. Perhaps the easiest to set up, but not the most flexible. Is to place your

Configuring Intellij IDEA 15.0.4 and SBT 0.13.7 with local Artifactory server

别来无恙 提交于 2019-12-23 02:03:15
问题 I installed Intellij IDEA 15.0.4 + Scala plugin (2.2.0) on a computer with an internet connection, created a new SBT project and all the external dependencies were added to the project: i.stack.imgur.com/v560H.png However, when I try to do the same thing in our issolated network (no internet) against our Artifactory server, I got the following message: Error:Error while importing SBT project: ... http://zzz:8081/artifactory/scala_local/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar ::::::::::

How to make `sbt test` to run tests in main project and all subprojects (or some selected set)

大兔子大兔子 提交于 2019-12-23 02:00:11
问题 I have a main project and a few subprojects. When I want to run tests, currently I have to do sbt test and sbt subProjectName/test . Is there any way of making sbt run all tests or for example all tests in the main project and one of the subprojects. I am using Build.scala configurations, but can't find a way of setting this. Thanks! 回答1: Therefore sbt supports aggregate . for in depth details read: http://www.scala-sbt.org/0.13.5/docs/Getting-Started/Multi-Project.html#aggregation In given