-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sbt
26 lines (19 loc) · 805 Bytes
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name := "gitbucket-plantuml-plugin"
organization := "com.yotaichino"
version := "1.7.0"
scalaVersion := "2.13.7"
gitbucketVersion := "4.37.0"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)
scalacOptions := Seq("-deprecation", "-feature", "-language:postfixOps", "-Ydelambdafy:method", "-target:jvm-1.8")
javacOptions in compile ++= Seq("-target", "8", "-source", "8")
useJCenter := true
lazy val downloadPlantuml = taskKey[Unit]("Download the PlantUML ASL Version.")
downloadPlantuml := {
val url = "https://downloads.sourceforge.net/project/plantuml/1.2022.5/plantuml-jar-asl-1.2022.5.zip"
if (java.nio.file.Files.notExists(new File("lib/plantuml.jar").toPath())) {
println(url)
IO.unzipURL(new URL(url), new File("lib"))
}
}