build: Extract common config to top-level build.gradle
We can inject plugin, repositories and dependencies directly from
the top-level build.gradle.
This extracts a common version of junit for all projects (and
updates anagram to use assertj, the junit matchers did not work
with 4.12).
This implementation does not generate a test suite based on the json
meta the hello-world exercise.
See https://github.com/exercism/todo/issues/13
Fixes https://github.com/exercism/todo/issues/35
- move example.java so we can refer to it in Gradle as a soureSet.
- Java requires public classes be contained in identically-named files.
- using latest Travis infrastructure (better, stronger, faster).
- each piece of travis config has been confirmed as minimum necessary at
this time.
- without JDK specified, would run with default (Java 7)
- without TERM=dumb, travis output is unreadable.
Gradle can be run directly on Mac/Linux/Windows and
auto-download dependencies (much like sbt for Scala),
as well as simplify IDE integration.
Add appropriate .gitignore for this sub-tree.
For developers, to add a new exercism:
cp -r _template new-exercism
# create test in new-exercism/src/test/java/SampleTest.java
git add new-exercism
Users will be able to just run "./gradlew check" to run tests.