-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sc
31 lines (25 loc) · 1.01 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
import mill._
import mill.scalalib._
import mill.scalalib.publish._
trait ScalaTest extends TestModule {
def ivyDeps = Agg(ivy"org.scalatest::scalatest:3.1.0")
def testFrameworks = Seq("org.scalatest.tools.Framework")
}
object main extends Cross[MainModule]("2.12.10", "2.13.1")
class MainModule(val crossScalaVersion: String) extends CrossScalaModule with PublishModule {
def artifactName = "niol"
def publishVersion = "2.0.1"
def scalacOptions = Seq("-deprecation", "-feature")
def ivyDeps = Agg(ivy"com.electronwill::more-collections:1.0.1")
def pomSettings = PomSettings(
description = "Lightweight network library for Scala",
organization = "com.electronwill",
url = "https://github.com/TheElectronWill/Niol",
licenses = Seq(License.`LGPL-3.0-or-later`),
versionControl = VersionControl.github("TheElectronWill", "Niol"),
developers = Seq(
Developer("TheElectronWill", "Guillaume Raffin", "https://electronwill.com")
)
)
object test extends Tests with ScalaTest {}
}