sbt-release

How to release a Scala library to Maven Central using sbt?

别等时光非礼了梦想. 提交于 2020-05-09 17:55:08
问题 I have an open source Scala project using SBT and I would like to release my library to Maven. How do I do it? 回答1: I always forget how to do this. So here are my notes: Once in your life: Create Sonatype account For every new developer machine: Install gpg e.g. on OSX: brew install gpg Run gpg --gen-key to generate a new key. Remember the passphrase and email you used . Make sure you see it when you list your secret keys: > gpg --list-secret-keys ~/.gnupg/pubring.kbx ------------------------

How to achieve indepedent multi module versioning with sbt-release plugin

我的梦境 提交于 2019-12-11 03:19:42
问题 I have a two sub-projects and top level project which agreegates them. I can successfully release all of them but only version on top level project is changed and sub-projects are released with the version defined in their directory which unfortunately is not changed during release. Root | -SubA | |- version.sbt -> version in SubA := "0.0.1-SNAPSHOT" | -SubB | |- version.sbt -> version in SubB := "0.0.4-SNAPSHOT" |- version.sbt -> version in ThisBuild := "0.1.0-SNAPSHOT" After release I would

How to push/build a docker image in release process via sbt-release

删除回忆录丶 提交于 2019-12-06 13:14:23
问题 I'm a newbie for scala. I used sbt-release to control release process and sbt-docker to build/publish a docker image. I can release a specific version via sbt release and build/publish a docker image via sbt docker or `sbt dockerBuildAndPush' If I wanna release a specific version, I need to execute sbt release remember the release version and modify docker image tag with the release version execute sbt dockerBuildAndPush But it's so tedious... I wanna add build/publish docker image into

Set release version automatically without prompting users - sbt-release

…衆ロ難τιáo~ 提交于 2019-12-06 11:18:36
问题 How can I prevent sbt-release from prompting user for Release version and Next version? 回答1: use the with-defaults option: $ sbt "release with-defaults" 来源: https://stackoverflow.com/questions/35559502/set-release-version-automatically-without-prompting-users-sbt-release

How to push/build a docker image in release process via sbt-release

你离开我真会死。 提交于 2019-12-04 20:05:53
I'm a newbie for scala. I used sbt-release to control release process and sbt-docker to build/publish a docker image. I can release a specific version via sbt release and build/publish a docker image via sbt docker or `sbt dockerBuildAndPush' If I wanna release a specific version, I need to execute sbt release remember the release version and modify docker image tag with the release version execute sbt dockerBuildAndPush But it's so tedious... I wanna add build/publish docker image into release process. For example: I define my release process in build.sbt val publishDocker = ReleaseStep