forked from com-lihaoyi/requests-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sc
39 lines (37 loc) · 1.51 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
import mill._
import mill.scalalib.publish.{Developer, License, PomSettings, VersionControl}
import scalalib._
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.1.4`
import de.tobiasroeser.mill.vcs.version.VcsVersion
import $ivy.`com.github.lolgab::mill-mima::0.0.10`
import com.github.lolgab.mill.mima._
val dottyVersion = Option(sys.props("dottyVersion"))
object requests extends Cross[RequestsModule]((List("2.12.13", "2.13.5", "2.11.12", "3.0.0") ++ dottyVersion): _*)
class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule with PublishModule with Mima {
def publishVersion = VcsVersion.vcsState().format()
def mimaPreviousVersions = Seq("0.7.0") ++ VcsVersion.vcsState().lastTag.toSeq
override def mimaBinaryIssueFilters = Seq(
ProblemFilter.exclude[ReversedMissingMethodProblem]("requests.BaseSession.send")
)
def artifactName = "requests"
def pomSettings = PomSettings(
description = "Scala port of the popular Python Requests HTTP client",
organization = "com.lihaoyi",
url = "https://github.com/lihaoyi/requests",
licenses = Seq(License.MIT),
versionControl = VersionControl.github("lihaoyi", "requests-scala"),
developers = Seq(
Developer("lihaoyi", "Li Haoyi","https://github.com/lihaoyi")
)
)
def ivyDeps = Agg(
ivy"com.lihaoyi::geny::0.6.10"
)
object test extends Tests{
def ivyDeps = Agg(
ivy"com.lihaoyi::utest::0.7.10",
ivy"com.lihaoyi::ujson::1.3.13"
)
def testFrameworks = Seq("utest.runner.Framework")
}
}