A mildly opinionated Giter8 template for a Scala 3 library with Mill build tool.
- Create a new, empty GitHub repo, with
main
branch - Clone the repo, and run this inside it:
mill -i init sake92/mill-scala3-library-starter.g8 -o .
- Tell git that
mill
is executable:git update-index --chmod=+x ./mill
- Develop, commit, push
Enjoy!
Simple build for a Scala 3 library.
If you want to cross build for ScalaJS/ScalaNative, please refer to the Mill docs.
Or simply copy-paste my setup from Tupson
Runs tests on Java 11, 17, 21.
Releasing is done with Java 11.
Make sure you have credentials for publishing to Sonatype and a GPG key created.
Before releasing you need to set up the following secrets:
- SONATYPE_USERNAME
- SONATYPE_PASSWORD
- PGP_PASSPHRASE
- PGP_SECRET
Please follow the docs from mill-ci-release
Make sure you set up GitHub Pages to use gh-pages
branch, from root folder /
Documentation with Hepek SSG and GitHub Pages deployment
It follows the DIVIO's Documentation System for structuring the docs in a meaningful way.