These are chat archives for sbt/sbt

2nd
Dec 2015
Perry
@pfn
Dec 02 2015 03:08
eh, dropWhile and take and lastOption is shorter
:P
scala> Seq("a", "b", "c", "-encoding", "d", "e").dropWhile(_ != "-encoding").take(2).lastOption
res0: Option[String] = Some(d)
imo, also simpler, and these are all O(n)
Sam Halliday
@fommil
Dec 02 2015 07:39
Heh, I never knew about collectFirst
Pawel
@odwrotnie
Dec 02 2015 09:48
Hi, how do you merge webapp directories in multiproject setup with version 2 of xsbt web plugin? The author said I should use webappPostProcess to copy all of my webapp resources into the target webapp directory. Do you know how?
Grzegorz Slowikowski
@gslowikowski
Dec 02 2015 09:57
Thank you for your help with the encoding discovery. I have some SBT-specific questions now:
  • what is the default value of scalacOptions? empty Seq()?
  • how can I check (scalacOptions in (Compile)).value in my SBT plugin code (cannot use .value)?
  • should I check scalacOptions in (Compile) or scalacOptions in (Compile, compile), what's the difference?
  • I had to change
    lazy val coverageSourceEncoding = settingsKey[Option[String]]("source file encoding")
    to
    lazy val coverageSourceEncoding = taskKey[Option[String]]("source file encoding")
    to compile
      coverageSourceEncoding := (scalacOptions in (Compile)).value.sliding(2).collectFirst { case Seq("-encoding", encoding) => encoding }
    I don't understand, why settingsKeyis wrong type here.
Miles Sabin
@milessabin
Dec 02 2015 10:13
I'm seeing certificate errors attempting to resolve via bintray this morning ... anyone else?
> update
[info] Updating {file:/home/miles/projects/kittens/}coreJVM...
[info] Resolving org.typelevel#alleycats-core_2.11;0.1.3-SNAPSHOT ...
[error] Server access Error: java.security.cert.CertificateException: No subject alternative DNS name matching repo.jfrog.org found. url=https://jcenter.bintray.com/org/typelevel/alleycats-core_2.11/0.1.3-SNAPSHOT/alleycats-core_2.11-0.1.3-SNAPSHOT.pom
eugene yokota
@eed3si9n
Dec 02 2015 10:28
@milessabin I get 404 from repo.jfrog.org's Artifactory trying to hit the URL
Miles Sabin
@milessabin
Dec 02 2015 10:29
My problem seems to have been transient.
eugene yokota
@eed3si9n
Dec 02 2015 10:31
maybe it went away because you now have the right jar in your ivy cache. it's weird that one server's 404 is returning from another host even if it's all redirection magic
Perry
@pfn
Dec 02 2015 16:00
huh, libraryDependencies += moduleID from "file://..." doesn't work properly, it only checks local and fails
why?
oh, seems to have been fixed between 0.13.8 and 0.13.9