1
1
import mill ._
2
2
import mill .scalalib .publish .{Developer , License , PomSettings , VersionControl }
3
3
import scalalib ._
4
- import $ivy .`de.tototec::de.tobiasroeser.mill.vcs.version::0.3.0`
4
+ import $ivy .`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
5
+ import $ivy .`com.github.lolgab::mill-mima::0.0.23`
6
+
5
7
import de .tobiasroeser .mill .vcs .version .VcsVersion
6
- import $ivy .`com.github.lolgab::mill-mima::0.0.13`
7
8
import com .github .lolgab .mill .mima ._
8
9
9
10
val dottyVersion = sys.props.get(" dottyVersion" )
10
11
11
12
val scalaVersions = List (" 2.12.17" , " 2.13.10" , " 2.11.12" , " 3.1.1" ) ++ dottyVersion
12
13
13
- object requests extends Cross [RequestsModule ](scalaVersions : _* )
14
- class RequestsModule ( val crossScalaVersion : String ) extends CrossScalaModule with PublishModule with Mima {
14
+ object requests extends Cross [RequestsModule ](scalaVersions)
15
+ trait RequestsModule extends CrossScalaModule with PublishModule with Mima {
15
16
def publishVersion = VcsVersion .vcsState().format()
16
17
def mimaPreviousVersions = (Seq (" 0.7.0" , " 0.7.1" ) ++ VcsVersion .vcsState().lastTag.toSeq).distinct
17
18
override def mimaBinaryIssueFilters = Seq (
18
19
ProblemFilter .exclude[ReversedMissingMethodProblem ](" requests.BaseSession.send" ),
19
20
ProblemFilter .exclude[DirectMissingMethodProblem ](" requests.Response.string" )
20
21
)
21
- def artifactName = " requests "
22
+
22
23
def pomSettings = PomSettings (
23
24
description = " Scala port of the popular Python Requests HTTP client" ,
24
25
organization = " com.lihaoyi" ,
@@ -29,10 +30,10 @@ class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule wit
29
30
Developer (" lihaoyi" , " Li Haoyi" ," https://github.com/lihaoyi" )
30
31
)
31
32
)
32
- def ivyDeps = Agg (
33
- ivy " com.lihaoyi::geny::1.0.0 "
34
- )
35
- object test extends Tests with TestModule .Utest {
33
+
34
+ def ivyDeps = Agg ( ivy " com.lihaoyi::geny::1.0.0 " )
35
+
36
+ object test extends ScalaTests with TestModule .Utest {
36
37
def ivyDeps = Agg (
37
38
ivy " com.lihaoyi::utest::0.7.10 " ,
38
39
ivy " com.lihaoyi::ujson::1.3.13 "
0 commit comments