-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sc
74 lines (52 loc) · 2.09 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import mill._
import scalalib._
import publish._
import coursier.maven.MavenRepository
trait Packageable {
val organization: String = "vision.id"
val name: String = "graphgephi"
}
trait Versioned extends ScalaModule with PublishModule with Packageable {
val githubName: String = "scala-graph-to-gephi"
def scalaVersion: T[String] = "2.12.8"
def publishVersion: T[String] = "0.1.3"
override def artifactName: T[String] = name
def pomSettings: T[PomSettings] = PomSettings(
description = "Basic conversion tool to visualize Graph4Scala graphs with the Gephi toolkit",
organization = organization,
url = "https://github.com/mcallisto/" + githubName,
licenses = Seq(License.`GPL-3.0`),
versionControl = VersionControl.github("mcallisto", githubName),
developers = Seq(
Developer("mcallisto", "Mario Càllisto", "https://github.com/mcallisto")
)
)
}
trait Testable extends ScalaModule {
override def ivyDeps: T[Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"org.scalatest::scalatest:3.0.8"
)
}
object jvm extends Versioned { outer ⇒
override def repositories: Seq[coursier.Repository] = super.repositories ++ Seq(
MavenRepository("https://raw.github.com/gephi/gephi/mvn-thirdparty-repo/")
)
override def ivyDeps: T[Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"org.scala-graph::graph-core:1.13.0",
ivy"com.lihaoyi::os-lib:0.2.8",
ivy"org.gephi:gephi-toolkit:0.9.2",
ivy"org.netbeans.modules:org-netbeans-core:RELEASE90",
ivy"org.netbeans.modules:org-netbeans-core-startup-base:RELEASE90",
ivy"org.netbeans.modules:org-netbeans-modules-masterfs:RELEASE90",
ivy"org.netbeans.api:org-openide-util-lookup:RELEASE90"
)
object test extends outer.Tests with Testable with Packageable {
override def unmanagedClasspath: T[Agg[PathRef]] = T {
super.unmanagedClasspath() ++ outer.unmanagedClasspath()
}
def testFrameworks: T[Seq[String]] = Seq("org.scalatest.tools.Framework")
def one(args: String*) = T.command {
super.runMain("org.scalatest.run", args.map(List(organization, name, _).mkString(".")): _*)
}
}
}