Questions tagged [sbt-release]

sbt-release is an sbt plugin that enables the user to create a customizable release process for the project.

sbt-release is an sbt plugin that enables the user to create a customizable release process for the project.

Advertised features of the sbt-release plugin include:

  1. cross-building;
  2. the ability to skip tests;
  3. automatic versioning;
  4. customized messages for source control;

More information the sbt-plugin can be found here while the sbt homepage is found here.

33 questions
14
votes
1 answer

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

I have an open source Scala project using SBT and I would like to release my library to Maven. How do I do it?
pathikrit
  • 32,469
  • 37
  • 142
  • 221
6
votes
0 answers

Sbt cross release: java.lang.IllegalStateException: Ivy file not found in cache for

I'm trying to cross publish a library for scala 2.12/2.11 using sbt-release, and getting a java.lang.IllegalStateException: Ivy file not found in cache exception in the 2.11 part (things continue for 2.12 and go all the way to being uploaded to…
OlivierBlanvillain
  • 7,701
  • 4
  • 32
  • 51
5
votes
1 answer

Issue with "No Staging repository found" in sonatype publish

I am using the amazing plugin sbt-ci-release but I think I am doing something wrong. I posted the whole details of all my experimentation and steps and attempt as an issue in their repo which can be find here. To do it short, when travis is calling…
Wonay
  • 1,160
  • 13
  • 35
5
votes
1 answer

How can I publish a snapshot artifact using sbt-release?

I managed to set up sbt-release in my CI pipeline to publish a release artifact (e.g. v0.0.1). From that point in time, I can add local changes and the build versions change to snapshot along with my commits (v0.0.1-1-SHA1-SNAPSHOT). At this stage,…
Andrea T. Bonanno
  • 221
  • 1
  • 4
  • 15
5
votes
1 answer

Releasing and publishing from sbt-bintray

I'm trying to publish to bintray a relase for my library. I already released several versions till now. java.lang.RuntimeException: error uploading to…
raisercostin
  • 8,777
  • 5
  • 67
  • 76
4
votes
2 answers

Split sbt release in stages?

I have an SBT project and a CD pipeline and what I want is to execute the following sequence of steps: Checkout my project from the git repo Tag the commit Run the tests Package my app Now at this point I don't want to release anything yet as I…
Todor Kolev
  • 1,432
  • 1
  • 16
  • 33
4
votes
1 answer

Is it possible to have multi project SBT with version.sbt for each subproject

I have a multi project SBT with four subprojects. I'd like to have separate versions for each subproject with a version.sbt in each. I'm using sbt-release. Readme says there is a setting release-version-file that should do this but it doesn't seem…
Cheeko
  • 1,193
  • 1
  • 12
  • 23
4
votes
2 answers

Specify a custom git tag with sbt-release

Is it possible to specify a git scheme for git tag names with sbt-release? The tag commit message and comment can be specified. Per the README: releaseTagComment := s"Releasing ${(version in ThisBuild).value}", releaseCommitMessage := s"Setting…
rcreswick
  • 16,483
  • 15
  • 59
  • 70
4
votes
2 answers

merge to master with sbt release-plugin

I'm trying to release my sbt project using sbt-release plugin. When I execute 'sbt release ' task on the develop brunch, it creates a new tag based on this branch, but doesn't merge changes from the current develop branch to the master. Is it…
Mike
  • 209
  • 1
  • 11
4
votes
2 answers

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

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…
Marek
  • 1,878
  • 14
  • 20
3
votes
0 answers

Rollback failed release process

Publishing a library is not an atomic operation in my project because the process involves number of side-effects that need to be cleaned up in the case of a failure. Errors can occur due to timeouts, attempting to publish an already existing…
Mario Galic
  • 47,285
  • 6
  • 56
  • 98
3
votes
1 answer

Running sbt release task from cli for sub-project doesn't work

I have a multi-project sbt where I use sbt-release plugin. Everything works fine if I run release in a sub-project > project reporter [info] Set current project to reporter (in build file:/source/storage-integ/) > release [info] Starting release…
Cheeko
  • 1,193
  • 1
  • 12
  • 23
2
votes
3 answers

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

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…
pandaforme
  • 153
  • 1
  • 9
2
votes
1 answer

Set release version automatically without prompting users - sbt-release

How can I prevent sbt-release from prompting user for Release version and Next version?
saniya saifee
  • 23
  • 1
  • 3
2
votes
2 answers

sbt-release not able to git push

I'm trying to build a sbt project with jenkins. I'm getting the following error when doing a sbt clean "release with-defaults" : [info] Starting release process off commit: ce6dcb5a1fdbf5330766e47f3adb26ebc5082c8d java.lang.RuntimeException: No…
Anand Nalya
  • 741
  • 8
  • 14
1
2 3