1- import os.copy.over
2- import $ivy.`io.github.quafadas::millSite::0.0.24`
3- import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.0`
4- import $ivy.` com.goyeau::mill-scalafix::0.4.0`
5- import $file.playwrightVersion // used to cache in GHA
1+ //| mill-version: 1.0.3
2+ //| mill-jvm-version: 21
3+ //| mvnDeps:
4+ //| - com.goyeau::mill-scalafix::0.6.0
5+
66
7- import io.github.quafadas.millSite._
7+ import os.copy.over
8+ // import io.github.quafadas.millSite._
89import mill._, scalalib._, publish._, scalanativelib._
910import mill.scalalib.scalafmt.ScalafmtModule
10- import de.tobiasroeser. mill.vcs.version._
11+ import mill.util.*
1112
1213import com.goyeau.mill.scalafix.ScalafixModule
1314import java.text.Format
1415
1516object V{
1617 val scalaLts = "3.3.5"
17-
18+ val pwV = build.pwV
1819 val http4sVersion = "0.23.30"
1920 val circeVersion = "0.14.10"
21+ val scalaVersion = "3.7.2"
2022}
2123
2224trait FormatFix extends ScalafmtModule with ScalafixModule with ScalaModule
2325
2426trait FormatFixPublish extends ScalaModule with FormatFix with PublishModule{
25- override def scalaVersion = "3.6.4"
27+ override def scalaVersion = V.scalaVersion
2628
27- override def scalacOptions: Target[Seq[String]] = super.scalacOptions() ++ Seq("-Wunused:all")
29+ override def scalacOptions = super.scalacOptions() ++ Seq("-Wunused:all")
2830
2931 def publishVersion = VcsVersion.vcsState().format()
3032
31- override def pomSettings = T {
33+ override def pomSettings = Task {
3234 PomSettings(
3335 description = "An experimental live server for scala JS projects",
3436 organization = "io.github.quafadas",
@@ -46,79 +48,27 @@ trait FormatFixPublish extends ScalaModule with FormatFix with PublishModule{
4648
4749trait Testy extends TestModule.Munit with FormatFix {
4850
49- override def defaultCommandName(): String = "test"
50-
51- def ivyDeps = super.ivyDeps() ++ sjsls.ivyDeps() ++ Seq(
52- ivy"org.typelevel::munit-cats-effect::2.0.0",
53- ivy"org.scalameta::munit::1.1.0",
54- ivy"com.lihaoyi::os-lib:0.11.4"
55- )
56-
57- }
58-
59- object routes extends FormatFixPublish {
51+ override def defaultTask(): String = "testForked"
6052
61- def scalaVersion: T[String] = V.scalaLts
62-
63- def ivyDeps = Agg(
64- ivy"org.http4s::http4s-core:${V.http4sVersion}",
65- ivy"org.http4s::http4s-client:${V.http4sVersion}",
66- ivy"org.http4s::http4s-server:${V.http4sVersion}",
67- ivy"org.http4s::http4s-dsl::${V.http4sVersion}",
68- ivy"com.outr::scribe-cats::3.15.0"
53+ def mvnDeps = super.mvnDeps() ++ sjsls.mvnDeps() ++ Seq(
54+ mvn"org.typelevel::munit-cats-effect::2.0.0",
55+ mvn"org.scalameta::munit::1.1.0",
56+ mvn"com.lihaoyi::os-lib:0.11.4"
6957 )
7058
71- override def artifactName = "frontend-routes"
72-
73- object test extends Testy with ScalaTests{
74- def ivyDeps = super.ivyDeps() ++ sjsls.ivyDeps()
75- }
76-
7759}
7860
79- object sjsls extends FormatFixPublish {
80-
81- override def scalaVersion = V.scalaLts
61+ // object site extends SiteModule {
8262
83- def ivyDeps = super.ivyDeps() ++ Seq(
84- ivy"org.http4s::http4s-ember-server::${V.http4sVersion}",
85- ivy"org.http4s::http4s-ember-client::${V.http4sVersion}",
86- ivy"org.http4s::http4s-scalatags::0.25.2",
87- ivy"io.circe::circe-core::${V.circeVersion}",
88- ivy"io.circe::circe-generic::${V.circeVersion}",
89- ivy"co.fs2::fs2-io::3.11.0",
90- ivy"com.lihaoyi::scalatags::0.13.1",
91- ivy"com.monovore::decline::2.5.0",
92- ivy"com.monovore::decline-effect::2.5.0",
63+ // def scalaVersion = sjsls.scalaVersion
9364
94- )
95-
96- def moduleDeps = Seq(routes)
97-
98- def artifactName = "sjsls"
99-
100- object test extends Testy with ScalaTests {
101- def ivyDeps = super.ivyDeps() ++ sjsls.ivyDeps() ++ Seq(
102-
103- ivy"com.microsoft.playwright:playwright:${playwrightVersion.pwV}",
104- ivy"com.microsoft.playwright:driver-bundle:${playwrightVersion.pwV}"
105- )
106- }
107- //def scalaNativeVersion = "0.4.17" // aspirational :-)
108-
109- }
110-
111- object site extends SiteModule {
112-
113- def scalaVersion = sjsls.scalaVersion
114-
115- override def moduleDeps = Seq(sjsls)
116- }
65+ // override def moduleDeps = Seq(sjsls)
66+ // }
11767
11868// SN deps which aren't yet there.
11969/**
120701 targets failed
121- project.resolvedIvyDeps
71+ project.resolvedmvnDeps
12272Resolution failed for 2 modules:
12373--------------------------------------------
12474 com.outr:scribe-cats_native0.4_3:3.13.5
0 commit comments