From de97a6042b1913de5a41387c242d70cbe49e64f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Herna=CC=81ndez?= Date: Mon, 15 Jan 2024 13:27:29 +0100 Subject: [PATCH] Set default for `versionPolicyIgnoredInternalDependencyVersions` --- modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala b/modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala index 464d763..2e37c5a 100644 --- a/modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala +++ b/modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala @@ -22,6 +22,8 @@ import sbt.Keys.streams import sbt._ import com.alejandrohdezma.resource.generator.ResourceGenerator +import sbtversionpolicy.SbtVersionPolicyPlugin +import sbtversionpolicy.SbtVersionPolicyPlugin.autoImport.versionPolicyIgnoredInternalDependencyVersions /** This plugin generates (or updates) a bunch of files common to several projects. */ object SbtCiPlugin extends AutoPlugin with ResourceGenerator[Unit] { @@ -41,6 +43,8 @@ object SbtCiPlugin extends AutoPlugin with ResourceGenerator[Unit] { override def trigger = allRequirements + override def requires: Plugins = SbtVersionPolicyPlugin + import autoImport._ override def buildSettings = Seq( @@ -51,7 +55,8 @@ object SbtCiPlugin extends AutoPlugin with ResourceGenerator[Unit] { excludeFile = globPatterns.value, logger = streams.value.log.info(_) ) - } + }, + versionPolicyIgnoredInternalDependencyVersions := Some("^\\d+\\.\\d+\\.\\d+\\+\\d+".r) ) private val globPatterns = Def.setting {