-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mdoc to 2.6.2 & metaconfig to 0.14.0 #2144
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,11 @@ object Dependencies { | |
val commontTextV = "1.13.0" | ||
val googleDiffV = "1.3.0" | ||
val jgitV = "5.13.3.202401111512-r" | ||
val metaconfigV = "0.13.0" | ||
val metaconfigV = "0.14.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bumping this at the same time as doc to prevent
|
||
val nailgunV = "0.9.1" | ||
val scalaXmlV = "2.2.0" | ||
val scalametaV = "4.12.2" | ||
val scalatagsV = "0.13.1" | ||
val scalatestV = "3.2.19" | ||
val munitV = "1.0.3" | ||
|
||
|
@@ -32,12 +33,12 @@ object Dependencies { | |
val googleDiff = "com.googlecode.java-diff-utils" % "diffutils" % googleDiffV | ||
val jgit = "org.eclipse.jgit" % "org.eclipse.jgit" % jgitV | ||
val metaconfig = "org.scalameta" %% "metaconfig-typesafe-config" % metaconfigV | ||
val metaconfigDoc = "org.scalameta" %% "metaconfig-docs" % metaconfigV | ||
val metacp = "org.scalameta" %% "metacp" % scalametaV | ||
val nailgunServer = "com.martiansoftware" % "nailgun-server" % nailgunV | ||
val scalaXml = "org.scala-lang.modules" %% "scala-xml" % scalaXmlV | ||
val scalametaFor3Use2_13 = "org.scalameta" %% "scalameta" % scalametaV cross CrossVersion.for3Use2_13 | ||
val scalametaTeskitFor3Use2_13 = "org.scalameta" %% "testkit" % scalametaV cross CrossVersion.for3Use2_13 | ||
val scalatags = "com.lihaoyi" %% "scalatags" % scalatagsV | ||
val scalatest = "org.scalatest" %% "scalatest" % scalatestV | ||
val munit = "org.scalameta" %% "munit" % munitV | ||
val semanticdbScalacCore = "org.scalameta" % "semanticdb-scalac-core" % scalametaV cross CrossVersion.full | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,17 +240,22 @@ object ScalafixBuild extends AutoPlugin with GhpagesKeys { | |
"com.lihaoyi" %% "pprint", | ||
// https://github.com/scalacenter/scalafix/pull/1819#issuecomment-1636118496 | ||
"org.scalameta" %% "fastparse-v2", | ||
"com.lihaoyi" %% "geny", | ||
// https://github.com/scalacenter/scalafix/pull/2025#issuecomment-2264188708 | ||
"com.geirsson" %% "metaconfig-core", | ||
"com.geirsson" %% "metaconfig-pprint", | ||
"com.geirsson" %% "metaconfig-typesafe-config" | ||
Comment on lines
-244
to
-247
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was dead conf since the org rename |
||
"com.lihaoyi" %% "geny" | ||
), | ||
versionPolicyIgnoredInternalDependencyVersions := | ||
Some("^\\d+\\.\\d+\\.\\d+\\+\\d+".r), | ||
versionScheme := Some("early-semver"), | ||
// coursier-versions always return false for the *.*.*.*-r pattern jgit uses | ||
libraryDependencySchemes += Dependencies.jgit.withRevision("always") | ||
libraryDependencySchemes ++= Seq( | ||
// coursier-versions always return false for the *.*.*.*-r pattern jgit uses | ||
Dependencies.jgit.withRevision(VersionScheme.Always), | ||
// metaconfig has no breaking change from 0.13.0 to 0.14.0 | ||
"org.scalameta" % "metaconfig-core_2.12" % VersionScheme.Always, | ||
"org.scalameta" % "metaconfig-core_2.13" % VersionScheme.Always, | ||
"org.scalameta" % "metaconfig-pprint_2.12" % VersionScheme.Always, | ||
"org.scalameta" % "metaconfig-pprint_2.13" % VersionScheme.Always, | ||
"org.scalameta" % "metaconfig-typesafe-config_2.12" % VersionScheme.Always, | ||
"org.scalameta" % "metaconfig-typesafe-config_2.13" % VersionScheme.Always | ||
Comment on lines
+251
to
+257
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. explicit binary suffix is required because |
||
) | ||
) | ||
|
||
override def projectSettings: Seq[Def.Setting[_]] = List( | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,10 +36,10 @@ object MetaconfigOps { | |
def getKey[T](conf: Conf.Obj, path: String, extraNames: String*)(implicit | ||
ev: ConfDecoder[T] | ||
): Configured[T] = { | ||
ConfGet.getKey(conf, path +: extraNames) match { | ||
case Some(value) => ev.read(value) | ||
case None => ConfError.missingField(conf, path).notOk | ||
} | ||
ConfGet.getOrElse( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
value => ev.read(value), | ||
ConfError.missingField(conf, path).notOk | ||
)(conf, path +: extraNames) | ||
} | ||
|
||
implicit class XtensionMetaconfigInputToMeta(input: Input) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scalameta/metaconfig@737be1e