forked from vic/mill-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sc
36 lines (27 loc) · 959 Bytes
/
build.sc
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
27
28
29
30
31
32
33
34
35
36
// -*- mode: scala -*-
import mill._, scalalib._, publish._, ammonite.ops._, ImplicitWd._
object docker extends ScalaModule with PublishModule {
def scalaVersion = "2.12.7"
def publishVersion = "0.0.4"
def artifactName = "mill-docker"
def m2 = T {
val pa = publishArtifacts()
val wd = T.ctx().dest
val ad = pa.meta.group.split("\\.").foldLeft(wd)((a, b) => a / b) / pa.meta.id / pa.meta.version
mkdir(ad)
pa.payload.map { case (f,n) => cp(f.path, ad/n) }
}
def pomSettings = PomSettings(
description = "Dockerize java applications on Mill builds",
organization = "io.github.vic",
url = "https://github.com/vic/mill-docker",
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("vic", "mill-docker"),
developers = Seq(
Developer("vic", "Victor Borja", "https://github.com/vic")
)
)
def compileIvyDeps = Agg(
ivy"com.lihaoyi::mill-scalalib:0.3.2",
)
}