sbt

How to set Class-Path in MANIFEST.MF to custom classpath?

旧街凉风 提交于 2020-01-06 07:27:29
问题 I have to deploy a JAR with a very specific classpath in its MANIFEST.MF. How would I configure sbt so the packaged JAR has this specific classpath (for example): . lib/abc.jar lib/xyz.jar ../../lib/maven/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.jar ../../lib/maven/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.jar ../../lib/maven/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.jar ../../lib/maven/commons-codec

Why two different versions of sbt in the project

拜拜、爱过 提交于 2020-01-06 02:48:06
问题 In my Play project I notice that build.properties has sbt version addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.12") and build.properties has sbt.version=0.13.15 . 1) Why are there two enteries? 2) What is the difference between them 3) Should their versions be different? 回答1: There is a difference between SBT proper and SBT plugin. Play Framework is an SBT plugin. The version of SBT is specified in project/build.properties : sbt.version=0.13.15 whilst the version of Play SBT plugin

How do I create a tarball and a zip for a single module using distinct configurations?

半城伤御伤魂 提交于 2020-01-06 02:44:10
问题 I have a multi-project build with a particularly messy module which contain several mainClasses. I would like to create several distribution packages for this messy module, each distribution package employing distinct file sets and employing different formats. Ideas? 回答1: This is the answer from the sbt-nativer-packager issue tracker where the same question was posted. I'm adding this from the gitter chat as well: I'm just arriving in this chat room and my knowledge of sbt-native-packager is

Why is the Unresolved Dependencies error with SecureSocial and Play 2.3.2?

一个人想着一个人 提交于 2020-01-05 11:38:43
问题 i'm writing a Play 2.3.2 application (using Java). In my project now i need to use secure social (master) module. But when i type the activator run command i get the following errors: [info] Resolving ws.securesocial#securesocial_2.11;1.0-SNAPSHOT ... [warn] module not found: ws.securesocial#securesocial_2.11;1.0-SNAPSHOT [warn] ==== local: tried [warn] /home/giacomo/.ivy2/local/ws.securesocial/securesocial_2.11/1.0-SNAPSHOT/ivys/ivy.xml [warn] ==== activator-local: tried [warn] file:/home

Debugging a software verifier written in sbt on Intellij Idea

回眸只為那壹抹淺笑 提交于 2020-01-05 08:23:09
问题 I'm working with Stainless, a software verifier for Scala programs. I would like to debug the verification process of a sample programme on Intellij Idea. On a previous post, I solved this integration problem for an interactive theorem prover. But now, I'm facing two problems: Apparently, the verification software runs at compile time. That is, I enter in the sbt console and run the compile command and then the verification process seems to be done. You may try this with this verified example

Sbt plugin binary incompatibility

柔情痞子 提交于 2020-01-05 06:51:39
问题 I am using the sbtantlr plugin and adapting it to use antlr v3.5. It used to work fine with scala 2.9.2. Today I upgraded my scala to 2.10.0. And I compiled the plugin in 2.10.0 and put the plugin 'sbtantlr.jar' in the 'lib' directory of my main scala project. SBT stopped working with this error message: Binary incompatibility in plugins detected. I revert the compiler version to 2.9.2 and it works fine. Is it because SBT (the official binary release) was built with 2.9? Where can I find the

Could not find proxy for … in Macro

吃可爱长大的小学妹 提交于 2020-01-05 01:13:52
问题 I have been chasing the following issue for quite a while and am hoping someone with more experience on this than myself can help me resolve it. In my test-case the exact error is as follows: java.lang.IllegalArgumentException: Could not find proxy for val user: specs.BasicSpec#User in List(value user, method applyOrElse, , method $anonfun$new$97, value fiveLetterNames, method $anonfun$new$90, method $anonfun$new$20, value , class BasicSpec, package specs, package ) (currentOwner= value

Sbt: Unresolvable webjar dependencies

若如初见. 提交于 2020-01-04 10:58:11
问题 I've created new play framework app using a angular-seed-play-java template. So now I'm trying to install Babel as a transpiler. Following these instructions I've added sbt-babeljs to my plugins.sbt https://github.com/stonexx/sbt-babeljs . Then I want to install bubel-core locally. I got a webjar from the http://www.webjars.org/ and inserted the following line into my build.sbt . "org.webjars.npm" % "babel-core" % "6.11.4" I'm getting unresolved dependency error: [error] (*:update) sbt

Installing SBT on Ubuntu - Module not found

╄→尐↘猪︶ㄣ 提交于 2020-01-04 04:36:24
问题 I'm trying to install SBT on Ubuntu 12.04 by using the DEB provided here: http://www.scala-sbt.org/0.13.2/docs/Getting-Started/Setup.html . After running sbt however, I get the error: Getting org.scala-sbt sbt 0.13.0 ... :: problems summary :: :::: WARNINGS module not found: org.scala-sbt#sbt;0.13.0 ==== local: tried /root/.ivy2/local/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml ==== sbt-releases-repo: tried http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml ====

How to troubleshoot “Error:scalac: bad symbolic reference to scala.ScalaObject encountered in class file 'package.class'”?

对着背影说爱祢 提交于 2020-01-04 04:35:32
问题 I face this error message when I try to run the project: Error:scalac: bad symbolic reference to scala.ScalaObject encountered in class file 'package.class'. Cannot access type ScalaObject in package scala. The current classpath may be missing a definition for scala.ScalaObject, or package.class may have been compiled against a version that's incompatible with the one found on the current classpath. There are similar questions here and here, but none seems to be applicable to my case - mine