https://github.com/whisklabs/pants-helloworld-scala
https://github.com/whisklabs/pants-helloworld-scala
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/whisklabs/pants-helloworld-scala
- Owner: whisklabs
- Created: 2020-02-18T12:30:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T16:14:47.000Z (over 5 years ago)
- Last Synced: 2025-08-17T05:02:52.660Z (about 2 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Pants HelloWorld Scala project
Use this as an example for your new Pants project.
Pants supports a lot more and here we focus on how to quickly create basic Scala project,
without using all Pants features together.This project is very simple and the only is a usage of multiple modules.
It's by no means an effective or elegant solution to print "Hello World!" :)We don't use `strict_deps` here, as it's easier to
migrate your project without it and later convert using
[pants-dependency-sanitizer](https://github.com/whisklabs/pants-dependency-sanitizer).### Files you should re-use in your project:
- BUILD files for every module (it's common to have one module per folder).
- pants.ini
- BUILD.tools### Supported commands:
- Compile your code
./pants compile src/scala/:: tests/scala/::
- Run tests
./pants test tests/scala/::
- Lint everything
./pants fmt src/:: tests/::
- To stop Pants and clean cache:./pants clean-all
### Known Pants problems (on Feb 18 2020):
- Not every python version and installation works.
It's safe to use Python 3.6 (but 3.7 works too) and set env variable:PYTHON=/usr/bin/python3.6
- Not every Pants version will work everywhere.
Usually every stable version works in Linux, but MacOS support might appear a bit later.
Current version we use right now: 1.21.0- For other known problems and workarounds check
[Pants installation docs](https://www.pantsbuild.org/install.html) or
[Pants Github issues](https://github.com/pantsbuild/pants/issues)### Pants docs
- [Pants docs](pantsbuild.org)
- [Pants repository](https://github.com/pantsbuild/pants) (has `examples` folder)