Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Navigate to the root of the checked out project.Set repository credentials and repository URI for the build to determine where to put the compiled binaries (*.jar files).

Code Block
languagebash
./sbt-batch clean-all compile

build and publish to a binary repository

The credentials to deploy to a binary repository have to be available from a credentials file, see https://www.scala-sbt.org/1.x/docs/Publishing.html#Credentials.

Set repository credentials and repository URI for the build to an environment variable named SBT_OPTS.

Code Block
languagebash
export SBT_OPTS="-DpublishRepository.credentialsFile=/path/to/credentials/file -DpublishRepository.uri=uri/of/the/binary/repository";

...