Move to sbt 1.0

This commit is contained in:
Naoki Takezoe
2017-09-20 15:05:44 +09:00
parent 4d3756ac0a
commit 1a9982446f
5 changed files with 18 additions and 16 deletions

View File

@@ -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))