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_mill0.9:0.1.1`
5
+ import de .tobiasroeser .mill .vcs .version .VcsVersion
4
6
5
7
val dottyVersion = Option (sys.props(" dottyVersion" ))
6
8
7
- object requests extends Cross [RequestsModule ]((List (" 2.12.6" , " 2.13.0" , " 3.0.0-RC1" ) ++ dottyVersion): _* )
9
+ object requests extends Cross [RequestsModule ]((List (" 2.12.6" , " 2.13.0" , " 2.11.12 " , " 3.0.0-RC1" ) ++ dottyVersion): _* )
8
10
class RequestsModule (val crossScalaVersion : String ) extends CrossScalaModule with PublishModule {
9
- def publishVersion = " 0.6.5 "
11
+ def publishVersion = VcsVersion .vcsState().format()
10
12
def artifactName = " requests"
11
13
def pomSettings = PomSettings (
12
14
description = " Scala port of the popular Python Requests HTTP client" ,
@@ -19,23 +21,13 @@ class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule wit
19
21
)
20
22
)
21
23
def ivyDeps = Agg (
22
- ivy " com.lihaoyi::geny::0.6.5 "
24
+ ivy " com.lihaoyi::geny::0.6.7 "
23
25
)
24
26
object test extends Tests {
25
27
def ivyDeps = Agg (
26
28
ivy " com.lihaoyi::utest::0.7.7 " ,
27
- ivy " com.lihaoyi::ujson::1.2.3 "
29
+ ivy " com.lihaoyi::ujson::1.3.9 "
28
30
)
29
31
def testFrameworks = Seq (" utest.runner.Framework" )
30
32
}
31
- // FIXME: scaladoc 3 is not supported by mill yet. Remove the override
32
- // once it is.
33
- override def docJar =
34
- if (crossScalaVersion.startsWith(" 2" )) super .docJar
35
- else T {
36
- val outDir = T .ctx().dest
37
- val javadocDir = outDir / ' javadoc
38
- os.makeDir.all(javadocDir)
39
- mill.api.Result .Success (mill.modules.Jvm .createJar(Agg (javadocDir))(outDir))
40
- }
41
33
}
0 commit comments