pants

How do I set the scala compiler version in pants.ini


I'd like to avoid always adding --scala-platform-version=2.11 to ./pants. Can I make this the default with configuration in pants.ini?


Solution

  • It turns out that pants options live under scopes, so I needed to have:

    [scala-platform]
    version: 2.11
    

    in my pants.ini file.