Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Commit ee949b1

Browse files
committed
fixes 0.13 compat
1 parent 8429f7b commit ee949b1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/scala-sbt-0.13/com/github/tkawachi/sbtlock/Compat.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ package com.github.tkawachi.sbtlock
22

33
object Compat {
44
val dependencyOverridesType: String = "Set"
5+
def syntax(config: String, key: String) = s"$key in $config"
56
}

src/main/scala-sbt-1.0/com/github/tkawachi/sbtlock/Compat.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ package com.github.tkawachi.sbtlock
22

33
object Compat {
44
val dependencyOverridesType: String = "Seq"
5+
def syntax(config: String, key: String) = s"$config / $key"
56
}

src/main/scala/com/github/tkawachi/sbtlock/SbtLock.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ object SbtLock {
2929
s"""// DON'T EDIT THIS FILE.
3030
|// This file is auto generated by ${BuildInfo.name} ${BuildInfo.version}.
3131
|// ${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) {
3434
| ${Compat.dependencyOverridesType}.empty
3535
| } else {
3636
| ${Compat.dependencyOverridesType}(

0 commit comments

Comments
 (0)