- Install Pants 2.12.0 via command line provided by https://www.pantsbuild.org/docs/installation.
- Add
.gitignore
manually.
- Add source code:
Main.scala
- Generate build definition by
./pants tailor
- For other changes, we'd better copy and paste from the official example repo
3rdparty/jvm/org/scala-lang/BUILD.pants
pants.toml
# To generate 3rdparty/jvm/default.lock
./pants generate-lockfiles --resolve=jvm-default
./pants fmt src/jvm::
./pants lint ::
./pants check ::
./pants run hello/src:bin