Skip to content

Switch build to Mill - #31

Merged
phaller merged 1 commit into
phaller:mainfrom
jspenger:spores3-mill
Apr 4, 2026
Merged

Switch build to Mill#31
phaller merged 1 commit into
phaller:mainfrom
jspenger:spores3-mill

Conversation

@jspenger

@jspenger jspenger commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

This PR replaces sbt build with Mill. JUnit4 is replaced with uTest as I could not get it working with Mill on Scala Native / JS.

The PR is submitted as four commits so that it is easier to track the changes. They should be squashed and signed before merge.

Comment thread build.mill Outdated
import com.github.lolgab.mill.mima._

val scala3 = "3.3.7"
val scalaJS = "1.19.0"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use Scala.js 1.20.2? It was released in January:
https://www.scala-js.org/news/2026/01/05/announcing-scalajs-1.20.2/

Comment thread build.mill
val scala3 = "3.3.7"
val scalaJS = "1.19.0"
val scalaNative = "0.5.8"
val upickle = "3.3.0"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to upgrade this as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into upgrading uPickle to 4.X and this will require some changes to the test cases as the newer uPickle versions produce different serialized output. I have another PR that addresses this and bumps the uPickle version to 4.X. So I will leave the uPickle version at 3.3.0 for this PR.

- Add Mill build instead of SBT
- Move source and test files to work with standard Mill directory layout
- Use uTest instead of JUnit4
- Fix GitHub Actions to use Mill
- Bump Scala.js and Scala Native versions: Scala.js "1.19.0" -> "1.20.2"; Scala Native "0.5.8" -> "0.5.10"
- Bump Spores3 version: "0.2.0" -> "0.3.0-SNAPSHOT"
@jspenger jspenger changed the title Replace sbt with Mill Switch build to Mill Apr 3, 2026
@phaller
phaller merged commit 1e759f7 into phaller:main Apr 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants