These are chat archives for sbt/sbt

24th
Feb 2016
Tim Harper
@timcharper
Feb 24 2016 00:59
@andyscott No, I don't believe so. Is the external project in question in the same SVM repository, and a subfolder of your project?
You could just consider consolidating all of your sbt files in to one.
andy scott
@andyscott
Feb 24 2016 02:02
@timcharper I wish it was that easy, but one of the projects is a SBT plugin that is used by another project.
The long term plan is to use published artifacts. Just looking for solutions for the interim.
Tim Harper
@timcharper
Feb 24 2016 03:34
It might still work. Just use "val subproject = (project in file("path/to/proj")". I believe sbt will source a build.sbt if it exists in that folder. If that works then "subproject/publishLocal" might work
andy scott
@andyscott
Feb 24 2016 03:59
Know of any way to automatically execute that task, say, on init of the dependant project?
Tim Harper
@timcharper
Feb 24 2016 06:00
I don't
Perry
@pfn
Feb 24 2016 07:17
onLoad ?
oh how I hate the 11-arg limit for Tasks
Alexander Ray
@AlexanderRay
Feb 24 2016 09:24
Hi, how to add a github dependency in build.sbt?
Simon Hafner
@reactormonk
Feb 24 2016 11:06
@AlexanderRay what exactly are you trying to do? That sounds like a bad idea.
Alexander Ray
@AlexanderRay
Feb 24 2016 11:22
i'm trying to use https://github.com/bedatadriven/renjin, but it has some bug that I want to fix in my fork repository and use it as sbt dep. what is the better way to do it?
Simon Hafner
@reactormonk
Feb 24 2016 11:26
I'd usually use a snapshot locally until you can use a fixed version.
Thanks for the project, looks pretty useful.
You can go with git, it will just make your build unstable, e.g. it might go from work to not work without any source changes.
See if you can set it to a specific git hash.
Alexander Ray
@AlexanderRay
Feb 24 2016 11:33
thnx. the problem is that it is a maven-diver project and I get same issue as here: http://stackoverflow.com/questions/35036591/can-i-use-maven-style-project-on-git-as-dependency
sbt.ResolveException: unresolved dependency: default#renjin_2.11;0.1-SNAPSHOT: not found
lazy val renjinLibrary = ProjectRef(uri("git://github.com/AlexanderRay/renjin.git#parent-0.7.0-RC2"), "renjin")
lazy val root = (project in file(".")).dependsOn(renjinLibrary)
Simon Hafner
@reactormonk
Feb 24 2016 11:37
now that's a bit more complicated.
Alexander Ray
@AlexanderRay
Feb 24 2016 11:44
ok. i should also import that plugin and made some pom.xml with deps to renjin project?
Joseph Nuthalapati
@JosephKiranBabu
Feb 24 2016 11:48

@AlexanderRay I am facing the same issue with a Java project which uses Maven.
I tried with both uri and file

lazy val cassandra_unit = uri("ssh://git@github.com/jsevellec/cassandra-unit.git") % "test"
lazy val cassandra_unit = file("/home/joseph/dev/poc/clones/cassandra-unit") % "test"

In both the cases, I get this error.

[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     ::          UNRESOLVED DEPENDENCIES         ::
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     :: default#cassandra-unit_2.11;0.1-SNAPSHOT: not found
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::

I'll be glad if someone can offer even a bad workaround. Just trying to test something quickly.

I can't even use the snapshot version of this library. 2.2.2.2-SNAPSHOT
I have the oss snapshots added to my resolvers. But sbt can't download it. Maybe they haven't published it.

Simon Hafner
@reactormonk
Feb 24 2016 11:58
@AlexanderRay maybe, just a guess.
Simeon H.K. Fitch
@metasim
Feb 24 2016 15:50
When I run publishM2 I'd like the artifacts to be published to a different location than ~/.m2/repository. Does anyone know which setting controls that destination?
Dale Wijnand
@dwijnand
Feb 24 2016 15:54
@metasim it's in publishM2Configuration
Simeon H.K. Fitch
@metasim
Feb 24 2016 15:55
Is it via the resolverName field?
It's not clear from the scaladoc .
Dale Wijnand
@dwijnand
Feb 24 2016 16:04
yeah looks like it identifies it by name..
Simeon H.K. Fitch
@metasim
Feb 24 2016 16:13
Last question on this: if I do show publishM2Configuration I get the default toString output (e.g. sbt.PublishConfiguration@45623380). How do I construct a show or eval that will allow me to print the resolverName field?
Dale Wijnand
@dwijnand
Feb 24 2016 16:20
one way I know is (publishM2Configuration in Compile).eval.resolverName in consoleProject
Simeon H.K. Fitch
@metasim
Feb 24 2016 16:25
@dwijnand Perfect! Thanks for all the help! :)
Dale Wijnand
@dwijnand
Feb 24 2016 16:34
np
Alexander Ray
@AlexanderRay
Feb 24 2016 19:01
@reactormonk thnx-)
Guillaume Martres
@smarter
Feb 24 2016 23:07
Are there other settings than crossPaths := false and autoScalaLibrary := false that are a good idea to enable for Java-only projects ?
Dale Wijnand
@dwijnand
Feb 24 2016 23:09
Not off the top of my head, personally
(also that sounds like a dotty-driven question under the guise of a Java question... :smile: )
Guillaume Martres
@smarter
Feb 24 2016 23:10
It's actually both :)
Guillaume Martres
@smarter
Feb 24 2016 23:35
If you're curious: lampepfl/dotty#1125