diff --git a/akka-docs/src/main/paradox/additional/packaging.md b/akka-docs/src/main/paradox/additional/packaging.md index 9bb4e8c360..d4c33ef9ee 100644 --- a/akka-docs/src/main/paradox/additional/packaging.md +++ b/akka-docs/src/main/paradox/additional/packaging.md @@ -24,7 +24,7 @@ distributions of any type of application, including Akka applications. Define sbt version in `project/build.properties` file: ```none -sbt.version=0.13.13 +sbt.version=1.3.12 ``` Add [sbt-native-packager](https://github.com/sbt/sbt-native-packager) in `project/plugins.sbt` file: @@ -43,7 +43,7 @@ to merge all the reference.confs on the build classpath into one. The plugin configuration might look like this: -``` +```xml org.apache.maven.plugins maven-shade-plugin @@ -92,7 +92,7 @@ To make sure the `reference.conf` resources are correctly merged, you might use the [Shadow plugin](https://imperceptiblethoughts.com/shadow/), which might look something like this: -``` +```groovy import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer plugins { @@ -107,3 +107,13 @@ shadowJar { with jar } ``` + +Or when you use the Kotlin DSL: + +```kotlin +tasks.withType { + val newTransformer = AppendingTransformer() + newTransformer.resource = "reference.conf" + transformers.add(newTransformer) +} +```