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.
sourceGeneratorskey and have your plugin implement tasks that feeds into that?
sourceGenerators in Compile += (scalaxb in Compile).taskValue
TaskKey[Seq[Jnaerator.Target]]seems to do exactly what I want.
console, warm JVM,
consoleProject, typechecked build setup, etc..
Tasks, which would give a huge scalability to boost
A few days back, I was asking for help with a SBT input parser. Got something working well in the end, here’s the result. https://github.com/scala/scala/pull/4950/files
FileParser might be handy for other SBT plugins, builds, or SBT itself. Basically works like tab completion of paths in your shell, with the ability to configure filters on the directories it descends into and the files it suggests. It also allows arbitrary input (ie it doesn’t restrict you to the suggestions).
Took me quite a while to figure this out, so thought I’d post it here. Maybe someone with an interest in this part of SBT could contribute a version of this as an example in the docs?
> completions library/test:compile [completions] library/test:compileIncremental [completions] library/test:compile:: [completions] library/test:compilerCache [completions] library/test:compileAnalysisFilename [completions] library/test:compile
completions tecommand to be interesting too then
company-mode(which is like a pluggable completion backend framework), then there are all kinds of things for filtering the suggestions, the most popular being
> organization<TAB> organizationHomepage organizationName
organizationas a candidate?
ozhRETwould probably be all you need for the first
server/assets:sourceDirectorywhen run in SBT points to
sourceDirectory in Assets := (sourceDirectory in Compile).value / “assets”)
enablePluginsdoesn’t properly put the settings in project
[info] client/web-assets:sourceDirectory [info] /Users/matthewdedetrich/github/professional-scala-chapter12-play-demo/js/src [info] server/web-assets:sourceDirectory [info] /Users/matthewdedetrich/github/professional-scala-chapter12-play-demo/jvm/app/assets