Questions tagged [sbt-0.13]

25 questions
1
vote
1 answer

How to create settings with dynamic dependencies?

I want a setting to depend on settings of a dynamic list of other projects (well, executed at SBT setting start up, but dynamic in the sense that it is not hard-coded). I have Def.dynTask to produce a task with a dynamic dependency on other…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
1
vote
1 answer

Variable dependent tasks in SBT

I can make a Makefile that has a target that processes all sources in the directory. SOURCE_DIR := src TARGET_DIR := target SOURCES := $(wildcard $(SOURCE_DIR)/*) $(TARGET_DIR)/%: $(SOURCE_DIR)/% md5sum $^ > $@ all:…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
0
votes
0 answers

SBT - How to mix/create separate Scala 2.11 and Scala 2.12 folders in same project?

I have an sbt project with deprecated libraries (ex. Spray, pre-release macro paradise, etc) that I cannot upgrade to Scala 2.12. It compiles with Scala 2.11.8 now. I want to continue development with non-deprecated libraries (ex. Akka HTTP, latest…
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
0
votes
1 answer

How do I get the last commit programmatically in Java code? Jenkins / sbt

I started writing a little tool that basically can do something (ex. compile or test code) and then send an email if it fails. https://github.com/JohnReedLOL/EmailTestingBot I want to add a feature where this tool can programmatically look at the…
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
0
votes
1 answer

sbt 0.13.16 - How do I customize triggered execution (file watch)

Right now, most of the changes that I am making are to config files and build.sbt files. That being said, I still want to trigger execution (ex. compile, test, reload, etc) when I touch these files. How do I customize sbt triggered execution to…
Michael Lafayette
  • 2,972
  • 3
  • 20
  • 54
0
votes
1 answer

Not found value spark SBT project

Hi i am trying to set up a small spark application in SBT, My build.sbt is import Dependencies._ name := "hello" version := "1.0" scalaVersion := "2.11.8" val sparkVersion = "1.6.1" libraryDependencies ++= Seq( "org.apache.spark" %%…
Hassan Aftab
  • 49
  • 2
  • 5
0
votes
0 answers

How does sbt 0.13 choose the configuration scope to use?

sbt "scopes" its tasks and settings. Documentation talks about the "scope axes" One of them is the "configuration axis" which seems to be magically selected for the evaluation of a task. Evaluate "compile" and the configuration scope is "Compile".…
Dirk Hillbrecht
  • 573
  • 5
  • 18
0
votes
2 answers

SBT: execute task using other task value

I redefine my tests to supply some arguments from configuration to test suite: This is an excerpt from my Build.scala: object Build extends Build { lazy val myProject = (project in file("my_project")).settings( test in Test :=…
dmitry
  • 4,989
  • 5
  • 48
  • 72
0
votes
1 answer

What does project location mean in SBT?

To define a project, I do project in file(".") What is the function of file("."), as opposed to settings baseDirectory? For example, what is the difference between lazy val myProject = project in file("foo") and lazy val myProject = (project in…
Paul Draper
  • 78,542
  • 46
  • 206
  • 285
0
votes
1 answer

Collecting or copying dependencies in sbt 0.13

There are a few old answered questions out there about this with answers that don't work for me in sbt 0.13. What is the easiest way to copy all of a project's runtime dependencies (jars mostly) to some given directory in sbt 0.13? Please include…
Scott
  • 3
  • 1
1
2