From 2d408e34dd0891f0449dac4cf13a9223abbe5ee0 Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Wed, 6 Sep 2023 14:42:22 +0200 Subject: [PATCH] Document how to only set dynverSeparator in specific sub project --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index fbcc9ac..3a2569b 100644 --- a/README.md +++ b/README.md @@ -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.