Apache Maven Shared Resources

Clone this repo:
  1. af83970 List every config file on the site index by Sylwester Lachiewicz · 6 days ago master
  2. 35f6ef6 Replace the README's contribution boilerplate with what the artifact holds by Sylwester Lachiewicz · 6 days ago
  3. e084a32 Refresh IntelliJ code style to match palantir-java-format by Sylwester Lachiewicz · 7 days ago
  4. 3e99e93 [MSHARED-1173] Refresh Eclipse code style to match palantir-java-format by Sylwester Lachiewicz · 7 days ago
  5. c9d4cb4 Add Groovy-Eclipse formatter settings for Groovy scripts by Sylwester Lachiewicz · 7 days ago

Apache Maven Shared Resources

Apache License, Version 2.0, January 2004 Maven Central Reproducible Builds Verify

The build configuration shared by Apache Maven projects: Checkstyle rules, license headers, and formatter settings for Spotless and IDEs. The Maven parent POM adds this artifact as a dependency of the Checkstyle and Spotless plugins, which then read each file from the classpath as config/<name>.

What this is

The artifact holds these files under config/:

FilePurpose
maven_checks_nocodestyle.xmlCheckstyle rules without the layout, import and header checks that Spotless covers; the parent POM uses this one
maven_checks.xmlCheckstyle rules including layout checks, for builds without Spotless
maven-header.txtLicense header as a regular expression, for the Checkstyle header check
maven-header-plain.txtLicense header as plain text, for the Spotless licenseHeader step
maven-eclipse-importorder.txtImport order for the Spotless importOrder step and Eclipse
maven-eclipse-codestyle.xmlEclipse formatter profile matching palantir-java-format
maven-idea-codestyle-2022.xmlIntelliJ IDEA code style approximating palantir-java-format; the palantir-java-format plugin gives exact output
maven-groovy-eclipse.propertiesGroovy-Eclipse formatter settings for Groovy scripts, such as invoker hook scripts (Spotless greclipse step)

A change here reaches projects only through a parent POM release: release this repository first, then update version.maven-shared-resources in the parent POM.

Build

mvn verify