These are chat archives for sbt/sbt
A relaxed chat room about sbt (That interactive build tool). For getting help on sbt, we encourage people to document it on Stackoverflow or subscribing to Lightbend subscription.
concurrentRestrictions in Global := Seq( ...)in a conditional?
Hey guys, I tried switching from sbt 0.13.8 (or 0.13.9) to 0.13.11, however 0.13.11 seems to have changed the way it resolves repositories. I've got a repositories file set up, together with a build repo override flag which used to cause sbt to first look at our local maven/ivy repos on our artifactory, but for some reason it now tries to resolve externally:
[info] Resolving com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT ... [error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/maven-metadata.xml [error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/mylibrary-core_2.11-2.3.2-SNAPSHOT.pom [error] Server access Error: Connection timed out: connect url=https://repo1.maven.org/maven2/com/someorg/mylibrary-core_2.11/2.3.2-SNAPSHOT/mylibrary-core_2.11-2.3.2-SNAPSHOT.jar [warn] Unable to reparse com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT from libs-snapshot, using Wed Mar 16 15:16:50 GMT 2016 [warn] Choosing libs-snapshot for com.someorg#mylibrary-core_2.11;2.3.2-SNAPSHOT [info] Resolving com.someorg#mylibrary-macro_2.11;2.3.2-SNAPSHOT ...
I am trying to build a plugin directly from git (https://github.com/joescii/sbt-jasmine-plugin/tree/5cd673151763c8f43aeaf12310dd98a049d556ee) and when I add it to my plugins.sbt-file with
lazy val sbtJasminePlugin = uri("git://github.com/joescii/sbt-jasmine-plugin#5cd673151763c8f43aeaf12310dd98a049d556ee") lazy val root = (project in file(".")) .dependsOn(sbtJasminePlugin)
... my other plugins can no longer be resolved. The log says the build is suddenly looking for _2.9.2-versions of them, which aren't available.
lazy val root = … part lets me compile the project again (obviously without the plugin I want)
show update". It looked promising, but unfortunately its resolver and artifactResolver properties are never anything other than "sbt-chain" and "inter-project". I guess I'll just remove all non-default resolvers, hide my ivy cache, and see what fails to download...
dependsOn(otherProject % "compile;test->compile")
r. at another point i had to type "project" once before it would register anything
project foowould not switch projects, but
project project foodid