This repository was archived by the owner on May 22, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
scala-sbt-0.13/com/github/tkawachi/sbtlock
scala-sbt-1.0/com/github/tkawachi/sbtlock
scala/com/github/tkawachi/sbtlock Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ package com.github.tkawachi.sbtlock
2
2
3
3
object Compat {
4
4
val dependencyOverridesType : String = " Set"
5
+ def syntax (config : String , key : String ) = s " $key in $config"
5
6
}
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ package com.github.tkawachi.sbtlock
2
2
3
3
object Compat {
4
4
val dependencyOverridesType : String = " Seq"
5
+ def syntax (config : String , key : String ) = s " $config / $key"
5
6
}
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ object SbtLock {
29
29
s """ // DON'T EDIT THIS FILE.
30
30
|// This file is auto generated by ${BuildInfo .name} ${BuildInfo .version}.
31
31
|// ${BuildInfo ._url}
32
- |Compile / dependencyOverrides ++= {
33
- | if (!(ThisBuild / sbtLockHashIsUpToDate).value && sbtLockIgnoreOverridesOnStaleHash.value) {
32
+ | ${ Compat .syntax( " Compile" , " dependencyOverrides" )} ++= {
33
+ | if (!( ${ Compat .syntax( " ThisBuild" , " sbtLockHashIsUpToDate" )} ).value && sbtLockIgnoreOverridesOnStaleHash.value) {
34
34
| ${Compat .dependencyOverridesType}.empty
35
35
| } else {
36
36
| ${Compat .dependencyOverridesType}(
You can’t perform that action at this time.
0 commit comments