Skip to content

Commit

Permalink
Merge pull request #273 from mdedetrich/document-how-to-set-dynverSep…
Browse files Browse the repository at this point in the history
…erator-only-in-subproject
  • Loading branch information
dwijnand authored Sep 22, 2023
2 parents 11c6941 + 2d408e3 commit c26b13d
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 c26b13d

Please sign in to comment.