These are chat archives for sbt/sbt

10th
Dec 2016
Ryan Williams
@ryan-williams
Dec 10 2016 01:05
i haven’t done any multi-module projects, but I assume the +/++/scalaVersion/crossScalaVersion APIs apply. lmk if you want an explanation of those :)
G. Richard Bellamy
@rbellamy
Dec 10 2016 02:00
why the heck doesn't sbt ship with the sbt-extras script?
I just spent several hours tracking down a bad CI build that was the result of polluted JAVA_OPTS
Ryan Williams
@ryan-williams
Dec 10 2016 04:26
how can I publish sbt plugins to the sbt-plugin-releases repo? I see that SBT attempts to resolve plugins at https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, and I also see this bintray repository; should I upload things to the latter? If so, how?
Following these instructions from the docs, it seems I have to pay bintray? I made a trial a bit ago and it’s about to expire
Vykintas Narmontas (William)
@ScalaWilliam
Dec 10 2016 10:01
sbt newbie intro... feedback welcome :)
https://www.scalawilliam.com/essential-sbt/
Mark Eibes
@i-am-the-slime
Dec 10 2016 17:24
Can I remove a global resolver from one local project?
Artūras Šlajus
@arturaz
Dec 10 2016 17:30
Hey there. I want to crosspublish an artifact to local repo between 2.12 and 2.11
And sbt is acting funny
> cross
crossPaths           crossScalaVersions   crossTarget          crossVersion
> crossScalaVersions
[info] List(2.11.8)
> crossTarget
[info] C:\work\game-configs\generator\geoip\target\scala-2.10
> crossVersion
[info] Binary
> crossPaths
[info] true
> publishLocal
[info] Updating {file:/C:/work/game-configs/generator/}geoip...
[info] Wrote C:\work\game-configs\generator\geoip\target\scala-2.10\geoip_2.10-1.0.0.pom
[info] Resolving com.typesafe.akka#akka-http_2.10;10.0.0 ...
[warn]  module not found: com.typesafe.akka#akka-http_2.10;10.0.0
[warn] ==== local: tried
[warn]   C:\Users\arturas\.ivy2\local\com.typesafe.akka\akka-http_2.10\10.0.0\ivys\ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/typesafe/akka/akka-http_2.10/10.0.0/akka-http_2.10-10.0.0.pom
[info] Resolving com.typesafe.scala-logging#scala-logging_2.10;3.5.0 ...
[warn]  module not found: com.typesafe.scala-logging#scala-logging_2.10;3.5.0
[warn] ==== local: tried
[warn]   C:\Users\arturas\.ivy2\local\com.typesafe.scala-logging\scala-logging_2.10\3.5.0\ivys\ivy.xml
[warn] ==== public: tried
[warn]   https://repo1.maven.org/maven2/com/typesafe/scala-logging/scala-logging_2.10/3.5.0/scala-logging_2.10-3.5.0.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.typesafe.akka#akka-http_2.10;10.0.0: not found
[warn]  :: com.typesafe.scala-logging#scala-logging_2.10;3.5.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]          com.typesafe.akka:akka-http_2.10:10.0.0 (C:\work\game-configs\generator\build.sbt#L82)
[warn]            +- com.tinylabproductions:geoip_2.10:1.0.0
[warn]          com.typesafe.scala-logging:scala-logging_2.10:3.5.0 (C:\work\game-configs\generator\build.sbt#L83)
[warn]            +- com.tinylabproductions:geoip_2.10:1.0.0
[trace] Stack trace suppressed: run last geoip/*:update for the full output.
[error] (geoip/*:update) sbt.ResolveException: unresolved dependency: com.typesafe.akka#akka-http_2.10;10.0.0: not found
[error] unresolved dependency: com.typesafe.scala-logging#scala-logging_2.10;3.5.0: not found
[error] Total time: 1 s, completed 2016-12-10 19.30.16
Any idea why it is trying to look up 2.10 libs here?
Ryan Williams
@ryan-williams
Dec 10 2016 17:31
presumably something in your dep tree is bringing them in
try whatDependsOn com.typesafe.akka akka-http_2.10 10.0.0
(you’ll need sbt-dependency-plugin in your project or global .sbt)
Mark Eibes
@i-am-the-slime
Dec 10 2016 17:32
on my server sbt can't resolve anything
probably it's behind a proxy
Mark Eibes
@i-am-the-slime
Dec 10 2016 17:48
twas openjdk
G. Richard Bellamy
@rbellamy
Dec 10 2016 19:16
how would I run sbt show test:managedClasspath and capture the output to a file? I know I can run show test:managedClasspath from inside the console...
(derp)
sbt "show test:managedClasspath"
Vykintas Narmontas (William)
@ScalaWilliam
Dec 10 2016 23:06
@rbellamy is this what you're looking for? http://askubuntu.com/a/420983