11import mill ._
22import mill .scalalib .publish .{Developer , License , PomSettings , VersionControl }
33import scalalib ._
4+ import $ivy .`de.tototec::de.tobiasroeser.mill.vcs.version_mill0.9:0.1.1`
5+ import de .tobiasroeser .mill .vcs .version .VcsVersion
46
57val dottyVersion = Option (sys.props(" dottyVersion" ))
68
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): _* )
810class RequestsModule (val crossScalaVersion : String ) extends CrossScalaModule with PublishModule {
9- def publishVersion = " 0.6.5 "
11+ def publishVersion = VcsVersion .vcsState().format()
1012 def artifactName = " requests"
1113 def pomSettings = PomSettings (
1214 description = " Scala port of the popular Python Requests HTTP client" ,
@@ -19,23 +21,13 @@ class RequestsModule(val crossScalaVersion: String) extends CrossScalaModule wit
1921 )
2022 )
2123 def ivyDeps = Agg (
22- ivy " com.lihaoyi::geny::0.6.5 "
24+ ivy " com.lihaoyi::geny::0.6.7 "
2325 )
2426 object test extends Tests {
2527 def ivyDeps = Agg (
2628 ivy " com.lihaoyi::utest::0.7.7 " ,
27- ivy " com.lihaoyi::ujson::1.2.3 "
29+ ivy " com.lihaoyi::ujson::1.3.9 "
2830 )
2931 def testFrameworks = Seq (" utest.runner.Framework" )
3032 }
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- }
4133}
0 commit comments