Eclipse WTP is not available in a form which can be easily consumed by maven or gradle. To fix this, we publish Eclipse's WTP formatters, along with a small amount of glue code, into the com.diffplug.spotless.extra:spotless-eclipse-wtp
artifact.
The _ext
projects are disabled per default. CONTRIBUTING.md
describes how to enable them.
Spotless at large is under the Apache 2.0 license, but this jar is under the EPL v1.
Most Eclipse updates do not require code or test modifications. But be aware that this project needs to access internal methods of the WTP plugin. Hence, the build step may fail after upgrading the Eclipse version.
-
Update the version information in projects properties, e.g.
VER_ECLIPSE
: Eclipse version (see Eclipse project)VER_ECLIPSE_WTP
: WTP version (see WTP project)VER_ECLIPSE_WTP_REPO
: The PR repository name which is equal to the Eclipse year-month version (see WTP repository overview).
-
Update the change log.
-
This project creates a M2 artifact, containing classes from Eclipse P2 artifacts. Hence a new project version is published for each new Eclipse version. Build and publish the new version via [Circle CI](https://app.circleci.com/pipelines/github/diffplug spotless).
Once the new version is available on maven central, prepare the integration of the new version into the next Spotless release.
- Execute
gradlew :eclipse-wtp:generateLibExtraLockFile
. - Update the default version in the
EclipseWtpFormatterStep
class oflib-extra
. - Check your changes by running
gradlew :lib-extra:build
.