pjfanning / sbt-source-dist   0.1.12

Apache License 2.0 GitHub

An sbt plugin source distributions for Apache Pekko

Scala versions: 2.12
sbt plugins: 1.0

sbt-source-dist

An sbt plugin to produce source distributions for Apache Pekko.

  • Outputs to target/dist directory of the root project

sbt plugin

sbt-source-dist is designed as an AutoPlugin that immediately triggers onto the root project. If necessary one can override one of projects keys, i.e. if the name of your project doesn't your Apache projects name you can do

sourceDistName := "My Apache Project"

If you have an explicit root project then you can do the following

val root = Project(id = "root", base = file(".")).settings(
  sourceDistName := "My Apache Project"
)

You can then generate the source distribution using

sbt sourceDistGenerate

sbt-source-dist also supports signing the final generated source distribution using sbt-pgp. Signing the source distribution in this manner has the added advantage of ensuring that the same signing key that is used to sign binary maven artifacts is also used for the source dist.

You can both generate the source distribution and then sign it using

sbt signedSourceDistGenerate

signedSourceDistGenerate will re-use the same settings provided by sbt-pgp so if you need to configure it follow the instructions at https://github.com/sbt/sbt-pgp#usage.