These are chat archives for sbt/sbt

30th
Apr 2017
Brian Topping
@briantopping
Apr 30 00:21
@rbellamy I don't have any magic up my sleeve for ya. I've moved to cassandra + CQRS indexes
Brian Topping
@briantopping
Apr 30 00:36
dagnamit, I just wasted a day getting credentials working on Jenkins that I had documented a week ago.
Bryan Tan
@Technius
Apr 30 00:44
What is a good way to deal with "Out of memory: Metaspace" errors? I usually just restart sbt, but I'm wondering if there's a better way.
Alexander Ray
@AlexanderRay
Apr 30 12:55
Hi, how to set environment variables in build.sbt?
ritschwumm
@ritschwumm
Apr 30 14:22
i don't think you can - what do you want to do?
Victor Moskvych
@wouzar
Apr 30 16:25
hi guys. i have akka-http version for scala 2.12, but akka-http-xml-experimental has no fresh version, just for 2.11. Therefore I have conflicting cross-version suffixes for akka-http-core, akka-parsing, akka-actor and akka-stream. Can I resolve it without downgrading my akka-http version?
Victor Moskvych
@wouzar
Apr 30 18:09
have solved, i just used akka-http-xml fresh versin
Brian Topping
@briantopping
Apr 30 18:46
Is there a way to force SBT to always authenticate against a repository? There's a problem with Nexus 3 when behind a HTTP proxy, 401 is translated to 503 when an upload is involved. If the 401 never gets back to SBT, it never tries again with the authentication header.
G. Richard Bellamy
@rbellamy
Apr 30 19:24
If anyone has an example where the flyway SBT plugin tasks are wired up to run before a slick codegen task, which in turn are wired up to run before tests (either test or it), and compile, I would love to see it...
Shane Delmore
@ShaneDelmore
Apr 30 20:36
I don't have an sbt task @rbellamy and can't share the code as it's for work but what i do for integration tests is start up all of my services in one vim (there are less than 10) and start up embedded Postgres, then just call flyway as code instead of sbt task.
G. Richard Bellamy
@rbellamy
Apr 30 20:38
@ShaneDelmore yeah, that's part of the challenge - how do you generate your slick models from DB code that hasn't been migrated yet? (e.g. flyway migration -> codegen -> compile)
I haven't got a problem managing flyway migrations in isolation - I can do it either through SBT or via code in my test pre/post setups
but as soon as I need to do codegen that relies on those flyway migrations I start having kittens trying to make it work
Shane Delmore
@ShaneDelmore
Apr 30 22:20
@rbellamy I don't actually keep my app code in lock step with db, I alternate db, app, db, app, db, app releases always making each compatible with current and last version which makes for nice zero downtime releases.
So if I add a new column, I add it with a default or make it billable, and roll it out while my slick models don't reference it. Then make another release of the app referencing the new column. Then after db rollout, and all app servers migrated, I make another db release getting rid of the default if I don't want to keep it. Makes deployments super low stress because you can do staged rollouts and rollbacks are simple. Only a little more co-ordination work.