Skip to content

Commit

Permalink
Set default for versionPolicyIgnoredInternalDependencyVersions
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma committed Jan 15, 2024
1 parent b263cb6 commit de97a60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/sbt-ci/src/main/scala/sbt/ci/SbtCiPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] {
Expand All @@ -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(
Expand All @@ -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 {
Expand Down

0 comments on commit de97a60

Please sign in to comment.