mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 03:26:06 +01:00
Move to sbt 1.0
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import java.security.MessageDigest
|
||||
import scala.annotation._
|
||||
import sbt._
|
||||
import io._
|
||||
|
||||
object Checksums {
|
||||
private val bufferSize = 2048
|
||||
|
||||
def generate(source:File, target:File, algorithm:String):Unit =
|
||||
IO write (target, compute(source, algorithm))
|
||||
sbt.IO write (target, compute(source, algorithm))
|
||||
|
||||
def compute(file:File, algorithm:String):String =
|
||||
hex(raw(file, algorithm))
|
||||
|
||||
Reference in New Issue
Block a user