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
2
votes
1 answer

Passing value of version in ThisBuild setting defined in version.sbt to artifactName?

I use sbt 0.13 and the sbt-release plugin in order to automatically increment version of a Play application, so I have file version.sbt with the following line: version in ThisBuild := "1.0-SNAPSHOT" I also prepare mapping artifact name in order to…
baju
  • 511
  • 5
  • 19
1
vote
1 answer

How to push to GitHub protected branch via sbt-release plugin?

TL;DR: What is the correct workflow to use both sot-release plugin with GitHub protected branch? I'm using sot-release plugin in order to auto-increment the project version files, and to commit it to the main branch. In addition, I would like to set…
Matan
  • 21
  • 2
1
vote
1 answer

How to set nexus repository URL in SBT for sonatypeRelease?

I am trying to make my jar available in maven central .All works fine when I do it manually from nexus repository manager UI. Problem occurs when I try to automate the complete steps using sbt-release plugin .On running sonatypeRelease I see it…
Rajesh Kumar Dash
  • 2,203
  • 6
  • 28
  • 57
1
vote
0 answers

releasePublishArtifactsAction doesnt seem to catch

I am trying to publish a multi project to sonatype using sbt-release, sbt-pgp and sbt-sonatype plugins. while running: sbt publishLocalSigned I see the .asc file published. but when running sbt release to sonatype I can only see the .md5 and sha1…
Noam Shaish
  • 1,613
  • 2
  • 16
  • 37
1
vote
1 answer

sbt-release from jenkins no user input

How can you do an sbt release from jenkins using a jenkinsfile with non-interactive sbt-release syntax? For some reason this does not work. Locally works sbt "release with-defaults" In Jenkins does not work sh "sbt \\'release…
James
  • 1,841
  • 1
  • 18
  • 23
1
vote
1 answer

cross-build artifacts being built but not with `releaseCrossBuild := true`

I'm trying to release a version of https://github.com/guardian/marley cross-built for Scala v2.11 & v2.12. All code dependencies are satisfied, and both +test and +publishLocalSigned work as expected, the latter definitely producing artifacts for…
Roberto Tyley
  • 24,513
  • 11
  • 72
  • 101
1
vote
2 answers

How to add a custom command in sbt?

I'm trying to add a new command to my sbt. In my build.sbt I have lazy val root = (project in file(".")).settings(mySuperDuperCommand) In a sibling file mySuperDuperCommands.sbt I have lazy val mySuperDuperTaskKey =…
gurghet
  • 7,591
  • 4
  • 36
  • 63
1
vote
1 answer

How to define SBT Release task in Build.scala?

I'm defining my build/release process in build.sbt. I also have a project/Build.scala that has some definitions which are used in build.sbt. Doing this to keep build.sbt readable. I'm trying to add a few new tasks to the releaseProcess. I'm defining…
Cheeko
  • 1,193
  • 1
  • 12
  • 23
1
vote
0 answers

sbt-release plugin: version increment does not write on disk

I am adding the plugin to a project (https://github.com/IllinoisCogComp/saul/pull/372/files) and now trying to use it in order to automatically bump the version number upon release. When I try release (inside sbt) I can see (via version) that the…
Daniel
  • 5,839
  • 9
  • 46
  • 85
1
vote
2 answers

'Not a valid key' error from sbt-release build command

I installed the sbt-release plugin in my scala sbt project. But when I run sbt release cross build or sbt release skip-tests, I get this error: Not a valid key: cross (similar: crossPaths, crossTarget, cross-paths)
Yu QIAN
  • 177
  • 3
  • 12
1
vote
1 answer

sbt-release plugin logs git push as error, despite it succeeding

I am using the sbt-release plugin. The process seems to work, however, sbt logs the final release step, pushChanges as error. Ideally, only actual errors are logged to error output as it can confuse the automation. Sample output here: Push changes…
gregsilin
  • 287
  • 1
  • 7
0
votes
1 answer

SBT publishing snapshots to sonatype

I am working on a project and the source got open sourced and we've decided to publish to maven central. https://github.com/mdsol/mauth-java-client/tree/refactor/publish_to_sonatype Currently we are publishing to an internal repo and it allows…
rojanu
  • 1,592
  • 5
  • 20
  • 34
0
votes
0 answers

Exception while using custom releaseTagName with pushChanges in sbt-release

I'm setting a custom tag name as part of release process using sbt-release releaseTagName := s"v${version.value}-${name.value}", Problem is, during the pushChanges release step where tags are pushed to github, it seems to use two tags. [info] *…
Cheeko
  • 1,193
  • 1
  • 12
  • 23
0
votes
1 answer

PlayFramework and SBT release plugin run with test play app configuration

Play 2.5 Is there a way to automatically load a test configuration when running the release task in SBT-release https://github.com/sbt/sbt-release. Currently, I have to run this command and explicitly specify the test config file. sbt "release…
maestr0
  • 5,318
  • 3
  • 28
  • 27
0
votes
1 answer

Add docker publish step to sbt-release process with new tag

I'm integrating the sbt-release plugin to our projects, in order to delegate all the build+publish tasks to it. It basically does all we need, but I'm adding an additional ReleaseStep to it: publishing a Docker image. This is my current…