An open API service indexing awesome lists of open source software.

https://github.com/pjfanning/sbt-source-dist

An sbt plugin source distributions for Apache Pekko
https://github.com/pjfanning/sbt-source-dist

pekko sbt-plugin

Last synced: 24 days ago
JSON representation

An sbt plugin source distributions for Apache Pekko

Awesome Lists containing this project

README

        

# sbt-source-dist

An sbt plugin to produce source distributions for
[Apache Pekko](https://github.com/apache/pekko).

* Outputs to target/dist directory of the root project

## sbt plugin

sbt-source-dist is designed as an [AutoPlugin](https://www.scala-sbt.org/1.x/docs/Plugins.html) that immediately
triggers onto the root project. If necessary one can override one of
projects [keys](/src/main/scala/com/github/pjfanning/sourcedist/SourceDistKeys.scala), i.e. if the name of your project
doesn't your Apache projects name you can do

```sbt
sourceDistName := "My Apache Project"
```

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

```sbt
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](https://github.com/sbt/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.