These are chat archives for sbt/sbt

6th
Aug 2017
eugene yokota
@eed3si9n
Aug 06 05:27
@fredc0088 not sure without looking at the whole build.sbt. could you put it on gist or something?
lazy val root = (project in file("."))
  .settings(
    name         := "hello",
    organization := "com.example",
    scalaVersion := "2.12.2",
    version      := "0.1.0-SNAPSHOT",
    libraryDependencies += "com.google.code.gson" % "gson" % "2.2.4"
  )
for example should work
given that you place your file under src/main/java/
fredc0088
@fredc0088
Aug 06 09:23
@eed3si9n thanks to reply. I tried it out, but still my import would not work. the java file is inside src/main/java. Here is how I attempted last time: https://gist.github.com/fredc0088/9a4f3099298649cf1f98713effafa3ab
fredc0088
@fredc0088
Aug 06 10:09
@eed3si9n here is the result of a sbt update:
ava HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from C:\Users\USER.sbt\0.13\plugins
[info] Updating {file:/C:/Users/USER/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from C:\Users\USER\Documents\Projects\Git Repos\code-test\project
[info] Updating {file:/C:/Users/USER/Documents/Projects/Git%20Repos/code-test/project/}code-test-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to code-test (in build file:/C:/Users/USER/Documents/Projects/Git%20Repos/code-test/)
[info] Updating {file:/C:/Users/USER/Documents/Projects/Git%20Repos/code-test/}root...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://repo1.maven.org/maven2/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar ...
[info] [SUCCESSFUL ] com.google.code.gson#gson;2.2.4!gson.jar (338ms)
[info] Done updating.
[success] Total time: 1 s, completed 06-Aug-2017 11:08:55
A. Alonso Dominguez
@alonsodomin
Aug 06 10:49
having the following error when running scripted tests in an SBT 0.13.16/1.0.0-RC3 cross build:
[info] Error during sbt execution: Could not finder sbt launch configuration.  Searched classpath for:
[info]  /sbt.boot.propertiesUnspecified
[info]  /sbt/sbt.boot.propertiesUnspecified
[info]  /sbt.boot.properties
[info]  /sbt/sbt.boot.properties
this shows up when I do:
> ^^1.0.0-RC3
> scripted
any help on what I may be missing?
N.S. Cutler
@godenji
Aug 06 10:55
@alonsodomin have exact same error, getting bitten by changes to implementation of Changed[0] between 0.13.16 and 1.0.0-RC3 (on the very off chance that this is what's causing an exception to be thrown in your case.)
publishLocal and run your sbt project to see actual error, scripted swallows the real exception.
A. Alonso Dominguez
@alonsodomin
Aug 06 11:03
thanks @godenji, but launching SBT 1.0.0-RC3 from the scripted tests seems to succeed...
it may be due to the fact that these scripted tests are missing the build.properties file (I have to add it to be able to launch SBT from them)
N.S. Cutler
@godenji
Aug 06 11:05
oh, then it's something else, in my case 1.0.0-RC3 fails due to an underlying exception being thrown, nothing to do with scripted
Nicolas Rinaudo
@nrinaudo
Aug 06 14:02
is there a trick to getting SBT scripted to not fail on travis? I have maybe too many tests, and there's always a couple that fail with Command failed: Remote sbt initialization failed
is the trick to either not run scripted as part of your CI or to switch to another CI provider?
fredc0088
@fredc0088
Aug 06 14:06
is there any reason sbt is not using dependecies? It definetely downloaded them though, they go straight in the cache aren't they?
Stevo Slavić
@sslavic
Aug 06 18:33
hi! where can one get sbt 1.0.0-RC3 launcher jar from? I've been away from scala for quite a while; before sbt launcher jars used to be available on http://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/ I see 0.13.16 is still there but I don't see 1.0.0-RC3
Arnout Engelen
@raboof
Aug 06 18:34
I made an sbt plugin that post-processes packageBin in Compile (https://github.com/raboof/sbt-reproducible-builds/blob/master/src/main/scala/ReproducibleBuildsPlugin.scala). Seems to work nicely on a small test project, but in a bigger project packageBin and package seem to be correctly updated, but not packagedArtifacts.
my theory is some other plugin is overwriting packagedArtifacts and is loaded before my plugin, 1) does that make any sense? 2) how could I diagnose which other plugin is responsible for that?
Sam Halliday
@fommil
Aug 06 19:25
Stevo Slavić
@sslavic
Aug 06 19:32
thanks @fommil, I found what I was looking for at http://dl.bintray.com/sbt/maven-releases/org/scala-sbt/sbt-launch/1.0.0-RC3/
Sam Halliday
@fommil
Aug 06 19:32
makes one of us :-)
Stevo Slavić
@sslavic
Aug 06 23:17
https://github.com/sdb/xsbt-filter seems not only incompatible but also discontinued. is anyone aware of any alternatives for doing resource filtering with latest sbt?