These are chat archives for sbt/sbt

8th
May 2015
N.S. Cutler
@godenji
May 08 2015 06:55
hey all, trying to separate common project settings into an sbt plugin that my apps will depend on. Having a problem getting sbt-eclipse sources on the classpath in src/main/scala (depending on the sbt-eclipse plugin works fine for project/*.scala). Do I have to build sbt-eclipse from source, or is there public repo I pull from?
sbteclipse-plugin.jar does not, for example, contain EclipseKeys
or so sayeth sbt > compile
eugene yokota
@eed3si9n
May 08 2015 07:00
are you depending on sbt-eclipse from your build?
eugene yokota
@eed3si9n
May 08 2015 07:06
@benmccann since @godenji can see it from project/*.scala, I have a feeling that it's not depending on sbt-eclipse from build.sbt (or project/build.scala)
N.S. Cutler
@godenji
May 08 2015 07:22
@eed3si9n right, first blind attempt was adding the sbt-eclipse plugin to my plugin project, which gave access to the plugin in project/.scala. That of course is useless as I need to put the common .scala files that require EclipseKeys et al in src/main/scala.
eugene yokota
@eed3si9n
May 08 2015 07:24
sbt plugins are just libraries with special attributes. you can put addSbtPlugin(..) inside settings(...) in build.sbt
N.S. Cutler
@godenji
May 08 2015 07:24
@eed3si9n thanks, what's equivalent syntax for Build.scala?
oh, the same, cool
N.S. Cutler
@godenji
May 08 2015 07:30
woot, works ;-) thanks @eed3si9n @benmccann
N.S. Cutler
@godenji
May 08 2015 08:11
awesome, plugin route is immensely useful for eliminating common settings boilerplate...
Dale Wijnand
@dwijnand
May 08 2015 08:44
:+1:
Jason Gilanfarr
@jasongilanfarr
May 08 2015 18:03
Curious, is if possible to have "version" update on a git index change? e.g.: http://stackoverflow.com/questions/30128504/sbt-update-version-on-git-index-change