Skip to content

Added Eclipse 4.21 support. #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This document is intended for Spotless developers.
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

## [Unreleased]
### Changed
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-cdt`, `eclipse-jdt`, `eclipse-wtp`. Change is only applied for JVM 11+.

## [2.16.1] - 2021-09-20
### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private EclipseCdtFormatterStep() {}
private static final String NAME = "eclipse cdt formatter";
private static final String FORMATTER_CLASS = "com.diffplug.spotless.extra.eclipse.cdt.EclipseCdtFormatterStepImpl";
private static final String FORMATTER_METHOD = "format";
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.16.0").add(11, "4.20.0");
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.16.0").add(11, "4.21.0");

public static String defaultVersion() {
return JVM_SUPPORT.getRecommendedFormatterVersion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private EclipseJdtFormatterStep() {}
private static final String FORMATTER_CLASS = "com.diffplug.spotless.extra.eclipse.java.EclipseJdtFormatterStepImpl";
private static final String MAVEN_GROUP_ARTIFACT = "com.diffplug.spotless:spotless-eclipse-jdt";
private static final String FORMATTER_METHOD = "format";
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.19.0").add(11, "4.20.0");
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.19.0").add(11, "4.21.0");

public static String defaultVersion() {
return JVM_SUPPORT.getRecommendedFormatterVersion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public enum EclipseWtpFormatterStep {

private static final String NAME = "eclipse wtp formatters";
private static final String FORMATTER_PACKAGE = "com.diffplug.spotless.extra.eclipse.wtp.";
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.18.0").add(11, "4.20.0");
private static final Jvm.Support<String> JVM_SUPPORT = Jvm.<String> support(NAME).add(8, "4.18.0").add(11, "4.21.0");
private static final String FORMATTER_METHOD = "format";

private final String implementationClassName;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Spotless formatter based on CDT version 10.4 (see https://www.eclipse.org/cdt/)
com.diffplug.spotless:spotless-eclipse-cdt:10.4.0
com.diffplug.spotless:spotless-eclipse-base:3.5.0
com.github.spotbugs:spotbugs-annotations:4.0.2
com.google.code.findbugs:jsr305:3.0.2
com.ibm.icu:icu4j:67.1
net.jcip:jcip-annotations:1.0
org.eclipse.platform:org.eclipse.core.commands:3.10.100
org.eclipse.platform:org.eclipse.core.contenttype:3.8.0
org.eclipse.platform:org.eclipse.core.filebuffers:3.7.0
org.eclipse.platform:org.eclipse.core.filesystem:1.9.100
org.eclipse.platform:org.eclipse.core.jobs:3.12.0
org.eclipse.platform:org.eclipse.core.resources:3.15.100
org.eclipse.platform:org.eclipse.core.runtime:3.23.0
org.eclipse.platform:org.eclipse.equinox.app:1.6.0
org.eclipse.platform:org.eclipse.equinox.common:3.15.0
org.eclipse.platform:org.eclipse.equinox.preferences:3.9.0
org.eclipse.platform:org.eclipse.equinox.registry:3.11.0
org.eclipse.platform:org.eclipse.jface.text:3.18.100
org.eclipse.platform:org.eclipse.jface:3.23.0
org.eclipse.platform:org.eclipse.osgi:3.17.0
org.eclipse.platform:org.eclipse.text:3.12.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Spotless formatter based on JDT version 4.21.0 (see https://projects.eclipse.org/projects/eclipse.jdt)
# Compare tag in M2 pom with https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/log/?h=R4_21 to determine core version.
com.diffplug.spotless:spotless-eclipse-jdt:4.8.0
com.diffplug.spotless:spotless-eclipse-base:3.5.0
com.github.spotbugs:spotbugs-annotations:4.0.2
com.google.code.findbugs:jsr305:3.0.2
net.jcip:jcip-annotations:1.0
org.eclipse.jdt:org.eclipse.jdt.core:3.27.0
org.eclipse.platform:org.eclipse.core.commands:3.10.100
org.eclipse.platform:org.eclipse.core.contenttype:3.8.0
org.eclipse.platform:org.eclipse.core.filesystem:1.9.100
org.eclipse.platform:org.eclipse.core.jobs:3.12.0
org.eclipse.platform:org.eclipse.core.resources:3.15.100
org.eclipse.platform:org.eclipse.core.runtime:3.23.0
org.eclipse.platform:org.eclipse.equinox.app:1.6.0
org.eclipse.platform:org.eclipse.equinox.common:3.15.0
org.eclipse.platform:org.eclipse.equinox.preferences:3.9.0
org.eclipse.platform:org.eclipse.equinox.registry:3.11.0
org.eclipse.platform:org.eclipse.osgi:3.17.0
org.eclipse.platform:org.eclipse.text:3.12.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Spotless formatter based on Eclipse-WTP version 3.23 (see https://www.eclipse.org/webtools/)
com.diffplug.spotless:spotless-eclipse-wtp:3.23.0
com.diffplug.spotless:spotless-eclipse-base:3.5.0
com.github.spotbugs:spotbugs-annotations:4.0.2
com.google.code.findbugs:jsr305:3.0.2
com.ibm.icu:icu4j:67.1
net.jcip:jcip-annotations:1.0
org.eclipse.emf:org.eclipse.emf.common:2.23.0
org.eclipse.emf:org.eclipse.emf.ecore:2.25.0
org.eclipse.emf:org.eclipse.xsd:2.18.0
org.eclipse.platform:org.eclipse.core.commands:3.10.100
org.eclipse.platform:org.eclipse.core.contenttype:3.8.0
org.eclipse.platform:org.eclipse.core.filebuffers:3.7.0
org.eclipse.platform:org.eclipse.core.filesystem:1.9.100
org.eclipse.platform:org.eclipse.core.jobs:3.12.0
org.eclipse.platform:org.eclipse.core.resources:3.15.100
org.eclipse.platform:org.eclipse.core.runtime:3.23.0
org.eclipse.platform:org.eclipse.equinox.app:1.6.0
org.eclipse.platform:org.eclipse.equinox.common:3.15.0
org.eclipse.platform:org.eclipse.equinox.preferences:3.9.0
org.eclipse.platform:org.eclipse.equinox.registry:3.11.0
org.eclipse.platform:org.eclipse.jface.text:3.18.100
org.eclipse.platform:org.eclipse.jface:3.23.0
org.eclipse.platform:org.eclipse.osgi.services:3.10.200
org.eclipse.platform:org.eclipse.osgi:3.17.0
org.eclipse.platform:org.eclipse.text:3.12.0
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EclipseCdtFormatterStepTest extends EclipseCommonTests {
protected String[] getSupportedVersions() {
List<String> version = new ArrayList<String>();
if (Jvm.version() >= 11) {
version.addAll(Arrays.asList("4.17.0", "4.18.0", "4.19.0", "4.20.0"));
version.addAll(Arrays.asList("4.17.0", "4.18.0", "4.19.0", "4.20.0", "4.21.0"));
}
version.addAll(Arrays.asList("4.7.3a", "4.11.0", "4.12.0", "4.13.0", "4.14.0", "4.16.0"));
return version.toArray(new String[version.size()]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EclipseJdtFormatterStepTest extends EclipseCommonTests {
protected String[] getSupportedVersions() {
List<String> version = new ArrayList<String>();
if (Jvm.version() >= 11) {
version.add("4.20.0");
version.addAll(Arrays.asList("4.20.0", "4.21.0"));
}
version.addAll(Arrays.asList("4.6.1", "4.6.2", "4.6.3", "4.7.0", "4.7.1", "4.7.2", "4.7.3a", "4.8.0", "4.9.0", "4.10.0",
"4.11.0", "4.12.0", "4.13.0", "4.14.0", "4.15.0", "4.16.0", "4.17.0", "4.18.0", "4.19.0"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class EclipseWtpFormatterCommonTests extends EclipseCommonTests {
protected String[] getSupportedVersions() {
List<String> version = new ArrayList<String>();
if (Jvm.version() >= 11) {
version.addAll(Arrays.asList("4.19.0", "4.20.0"));
version.addAll(Arrays.asList("4.19.0", "4.20.0", "4.21.0"));
}
version.addAll(Arrays.asList("4.7.3a", "4.7.3b", "4.8.0", "4.12.0", "4.13.0", "4.14.0", "4.15.0",
"4.16.0", "4.17.0", "4.18.0"));
Expand Down
2 changes: 2 additions & 0 deletions plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `3.27.0`).

## [Unreleased]
### Changed
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-cdt`, `eclipse-jdt`, `eclipse-wtp`. Change is only applied for JVM 11+.

## [5.15.1] - 2021-09-20
### Changed
Expand Down
2 changes: 2 additions & 0 deletions plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (starting after version `1.27.0`).

## [Unreleased]
### Changed
* Added support and bump Eclipse formatter default versions to `4.21` for `eclipse-cdt`, `eclipse-jdt`, `eclipse-wtp`. Change is only applied for JVM 11+.

## [2.13.1] - 2021-09-20
### Changed
Expand Down