orrsella / pants-getting-started

A template for getting started with Pants Build for Scala/Java projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pants-getting-started

Getting started with Pants Build isn't easy:

As of September 2014, alas, Pants is not something you can just install and use. To be precise: you can install it, but unless you've also Set up your code workspace to work with Pants, it won't work. You can use it in a workspace in which some Pants expert has set it up.

We're fixing this problem, but we're not done yet.

If want to try out Pants and no Pants expert has set it up for you, you might try https://github.com/twitter/commons.

So that's what I did – used existing pants setups to figure out the minimal Scala/Java project structure to get a Pants project compiling and running tests (including running tests written with JUnit, ScalaTest and Specs2).

Install

All you need to do to get started is install the Pants executable (System-wide Installation using pip works great for me):

$ sudo pip install pantsbuild.pants

Alternatively you can run the script ./build-support/scripts/setup which also installs Java and Scala (in addition to Pants).

Run Build

$ git clone git@github.com:orrsella/pants-getting-started.git
$ cd pants-getting-started/
$ pants test example:

(tested with Pants version 0.0.36)

Want more? Read the friendly docs. You can also watch Twitter University's intro videos.

If you're interested, here's some background for this small template project.

About

A template for getting started with Pants Build for Scala/Java projects

License:Apache License 2.0


Languages

Language:Shell 51.3%Language:Scala 30.9%Language:Python 17.7%