GRADLE-2171: Added DuplicatesStrategy allowing duplicate
files (based on their path) to be included or excluded, by
default for an entire copy operation or on a per-file basis

- duplicatesStrategy field to FileCopyDetails so individual files
  can specify their own strategy for handling duplicates

- add duplicatesStrategy field to CopySpec so that an entire copy
  spec can specify the default strategy (this can be overridden
  for some or all files)

- add CopySpec.matching and .notMatching convenience
  methods. These let the user modify a group of FileCopyDetails
  simultaneously. Motivated by setting a duplicatesStrategy for
  eg, "META-INF/**/*.xml" but is generally useful

- added CopySpec.duplicatesPriority that determines precedence
  among CopySpecs when a duplicate file is to be
  excluded. Plugins can set a higher duplicatesPriority for some
  specs (eg, Jar.manifest and Jar.metaInf), but this property is
  not currently user-settable.
GRADLE-2171 Improve documentation for DuplicatesStrategy-related method calls and add to DSL documentation
Merge from master
GRADLE-2171 Restore imports lost while merging conflicts
GRADLE-2171 Change case of DuplicatesStrategy enumeration so that Gradle can automatically coerce strings to enum types.
GRADLE-2171 Remove duplicate priority logic, expect specifications to be ordered based on their precedence. Right now the Ear test for deploymentDescriptor precedence is failing
GRADLE-2171 Remove DuplicatesStrategy.INHERIT which will just be represented by null
Added some stuff to the gradle-2.0 spec
GRADLEREV-1 - Mention contribution in release notes
Fix whitespace in build setup templates.
whitespace and formatting
Introduce constants for the build setup type ids.
formatting
GRADLEREV-7 - rename the “empty” build setup type to “basic”.
GRADLEREV-8 - Mention Björn Kautler's contribution in the release notes.
Use build setup type ids in test.

Also fixes failing test after type rename.
Mark the outputPerTestCase flag of JUnitXmlReport as incubating.
Tabs to spaces.
GRADLEREV-11 - mention Test implements Reporting in release notes.

Also some minor tweaks to DSL ref/Javadoc in this area.
Improve assertions on JUnit XML output to test that no system-out type elements are present when not using test case output association.