Skip to content

Commit

Permalink
Document how to only set dynverSeparator in specific sub project
Browse files Browse the repository at this point in the history
  • Loading branch information
mdedetrich committed Sep 6, 2023
1 parent 7db0d96 commit 2d408e3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,17 @@ This character can be overridden by setting:
ThisBuild / dynverSeparator := "-"
```

If you don't want to override `dynverSeparator` for your whole project you can instead do the following
instead (assuming you have a sbt sub project for your docker build)

```scala
lazy val dockerBuild = project
.in("docker-build")
.settings(
inConfig(Docker)(DynVerPlugin.buildSettings ++ Seq(dynverSeparator := "-"))
)
```

## Custom version string

Sometimes you want to customise the version string. It might be for personal preference, or for compatibility with another tool or spec.
Expand Down

0 comments on commit 2d408e3

Please sign in to comment.