This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sc
78 lines (56 loc) · 2.34 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
75
76
77
78
import mill._
import scalalib._
import publish._
import coursier.maven.MavenRepository
trait Packageable {
val organization: String = "vision.id"
val name: String = "tessella"
}
trait Versioned extends ScalaModule with PublishModule with Packageable {
val githubName: String = name
def scalaVersion: T[String] = "2.12.8"
def publishVersion: T[String] = "0.3.1"
override def artifactName: T[String] = name
def pomSettings: T[PomSettings] = PomSettings(
description =
"Tilings by regular polygons, helps working with finite unit-regular-polygon tessellations of a flat surface",
organization = organization,
url = "https://github.com/mcallisto/" + githubName,
licenses = Seq(License.`Apache-2.0`),
versionControl = VersionControl.github("mcallisto", githubName),
developers = Seq(
Developer("mcallisto", "Mario Càllisto", "https://github.com/mcallisto")
)
)
}
trait Testable extends ScalaModule with Packageable {
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.scalatest::scalatest:3.0.8",
ivy"org.scalacheck::scalacheck:1.14.0",
ivy"vision.id::graphgephi:0.1.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"
)
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(".")): _*)
}
}
object jvm extends Versioned { outer =>
override def ivyDeps: T[Agg[Dep]] = super.ivyDeps() ++ Agg(
ivy"org.scala-graph::graph-core:1.12.5",
ivy"org.scala-graph::graph-constrained:1.12.7",
ivy"org.scala-lang.modules::scala-xml:1.1.1",
ivy"com.lihaoyi::os-lib:0.2.8",
ivy"com.storm-enroute::scalameter:0.8.2",
ivy"ch.qos.logback:logback-classic:1.2.3",
ivy"com.typesafe.scala-logging::scala-logging:3.9.2"
)
object test extends outer.Tests with Testable with Packageable
object bench extends outer.Tests with Testable with Packageable
}