Skip to content

Commit 9939ae3

Browse files
committed
sbt 2
1 parent 98acdb8 commit 9939ae3

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
java-version: ${{ matrix.java }}
2222
- uses: sbt/setup-sbt@v1
2323
- name: Run tests
24-
run: sbt "+ update" test
24+
run: sbt "+ test"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package io.github.gitbucket.sbt
2+
3+
import java.io.File
4+
5+
private[sbt] object GitBucketPluginCompat {
6+
def toFile(f: File): File = f
7+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package io.github.gitbucket.sbt
2+
3+
import java.io.File
4+
5+
private[sbt] object GitBucketPluginCompat {
6+
inline def toFile(f: xsbti.HashedVirtualFileRef): File =
7+
sbt.Keys.fileConverter.value.toPath(f).toFile
8+
}

src/main/scala/io/github/gitbucket/sbt/GitBucketPluginKeys.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import sbt._
44

55
trait GitBucketPluginKeys {
66
lazy val gitbucketVersion = settingKey[String]("GitBucket version")
7+
@transient
78
lazy val install = taskKey[Unit]("Install the plugin to a local GitBucket instance.")
89
}

src/main/scala/io/github/gitbucket/sbt/GitBucketPluginTasks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import sbtassembly.AssemblyKeys.assembly
77

88
object GitBucketPluginTasks {
99
def installTask(key: TaskKey[Unit]): Initialize[Task[Unit]] = Def.task {
10-
val file = assembly.value
10+
val file = GitBucketPluginCompat.toFile(assembly.value)
1111

1212
val GitBucketHome = (System.getProperty("gitbucket.home") match {
1313
// -Dgitbucket.home=<path>

0 commit comments

Comments
 (0)