Questions tagged [sbt-0.13]

25 questions
21
votes
1 answer

How to exclude transitive dependencies of other subproject in multiproject builds?

In Build.scala I have a dependency between projects: val coreLib = Projects.coreLib() val consoleApp = Projects.consoleApp().dependsOn(coreLib) val androidApp = Projects.androidProject().dependsOn(coreLib/*, exclusions = xpp */) Core library…
dant3
  • 966
  • 9
  • 26
15
votes
3 answers

How to have SBT subproject with multiple Scala versions?

I have a project using Scala 2.10 and one using Scala 2.11. They depend on a common project, which can compile with both. lazy val foo = (project in file("foo")).dependsOn(baz).settings( scalaVersion := "2.10.4" ) lazy val bar = (project in…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
10
votes
1 answer

Suppress SBT eviction warnings

As of SBT 0.13.6, evictions are now warnings. [warn] Scala version was updated by one of library dependencies: [warn] * org.scala-lang:scala-library:(2.10.4, 2.10.1, 2.10.3, 2.10.0) -> 2.10.2 [warn] * org.scala-lang:scala-compiler:2.10.0 ->…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
7
votes
2 answers

SBT Scala cross versions, with aggregation and dependencies

I am struggling with how crossScalaVersions works with subprojects. I have a project that compiles with 2.10 (foo) and a project that compiles with 2.11 (bar). They share a cross compiled project (common). How can I compile projects foo and…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
6
votes
1 answer

SBT 0.13.8 what does the SettingKey.~= method do

The SettingKey.~= method is used to exclude dependencies from libraryDependencies (see play 2.3.8 sbt excluding logback), but trying to find out what it does is hard as: There is no documentation about this function at…
Woodz
  • 1,029
  • 10
  • 24
4
votes
1 answer

How to conditionally execute SBT task

I have an alternative way of completing an existing expensive task, though I don't know until runtime if I'll do it that way. (For example, a file cache.) How do I do this? For example, packageBin: packageBin in Compile := Def.taskDyn { if…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
2
votes
1 answer

sbt 0.13.16 - How do I println(systemProperty) in build.sbt file?

I am migrating a Build.scala file to a build.sbt file. In the Build.scala file, there are print statements that print out vals (of type String) defined in the body of the Build.scala file. project/Build.scala: import sbt._ import Keys._ object…
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
2
votes
1 answer

sbt assembly command shows error: (redshiftConnector/*:assembly) deduplicate: different file contents found

sbt assembly is giving me errors i am trying to create a fat jar with this link https://github.com/sbt/sbt-assembly under the heading Exclude specific transitive deps they exclude some of the libs that are causing this issue but in my projects…
swaheed
  • 3,671
  • 10
  • 42
  • 103
1
vote
1 answer

sbt how to get result (success/failed) of compile in an sbt task

I am trying to write an sbt task that checks if the code compilation succeeds or fails and based on that information, does something. So far I have…
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
1
vote
2 answers

Getting the current sbt plugin cross version

I'm trying to cross-build an sbt plugin between 0.13 and 1.1. To accomplish this I need to use different libraryDependencies for the different builds, but I can't find a way to access the current build's target sbt version. Back when the cross…
tjarvstrand
  • 836
  • 9
  • 20
1
vote
1 answer

How to stop node_modules folder to go into target directory of Play Framework 2.4

I am using play framework 2.4 my application was working fine before installing UI components e.g (grunt,ruby,npm,cpmpass)i did not know much about them but I needed these for my project UI to work there is a folder node_modules under the public…
swaheed
  • 3,671
  • 10
  • 42
  • 103
1
vote
0 answers

sbt 0.13 and Eclipse integration - What is "eclipse" and why is it not inspectable?

I have a (Java-based) Play-2.3.10/sbt-0.13.9 project. In my global .sbt/0.13/plugins/plugins.sbt I have addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") I start sbt's console. I type inspect compile. I get [info] Task:…
Dirk Hillbrecht
  • 573
  • 5
  • 18
1
vote
2 answers

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

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"…
Emma Strubell
  • 675
  • 5
  • 18
1
vote
1 answer

how to access parent project's classes in sub project in playFramework 2.3.x

I am using play 2.3.8 and using this gudie to create sub project in my project i created subproject 'mySubProject' and then i imported the project in eclipse the parent project myParentProject and mySubProject now i have two questions first -> is…
swaheed
  • 3,671
  • 10
  • 42
  • 103
1
vote
1 answer

Calling a TaskKey with different settings

I'm using the plugin sbt-assembly (version 0.13.0), and I would like to call assemblyPackageDependency with or without appendContentHash depending on some InputKey Basically, I would like to do something like this: lazy val isGlobalCached =…
lev
  • 3,986
  • 4
  • 33
  • 46
1
2