Skip to content

Commit 97d25fb

Browse files
BananeweizenCalixte
authored andcommitted
require java 17
* require Java 17 at runtime * require Eclipse 2022-09 as minimum target platform version (that's the first platform version requiring Java 17) * require eclipse.core 3.26, which is the plugin version contained in 2022-09. This avoids someone installing an upgrade in an older version * remove Java 11 build * require JUnit 5.9, since that version was delivered with Eclipse 2022-09 See #659 for a discussion, that the main checkstyle project will switch to Java 17 soon. We need to switch latest at the same time, but it's also fine to switch earlier.
1 parent 49972e4 commit 97d25fb

File tree

23 files changed

+80
-69
lines changed

23 files changed

+80
-69
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
platform: [ubuntu-latest, macos-latest, windows-latest]
12-
jdk: [11, 17, 21]
12+
jdk: [17, 21]
1313
runs-on: ${{ matrix.platform }}
1414
permissions:
1515
checks: write
@@ -43,6 +43,6 @@ jobs:
4343
- name: Publish Test Results
4444
uses: EnricoMi/publish-unit-test-result-action@f355d34d53ad4e7f506f699478db2dd71da9de5f # v2.15.1
4545
# we only want to attach test results one time, not for every matrix combination
46-
if: startsWith(matrix.platform, 'ubuntu') && (matrix.jdk == 11)
46+
if: startsWith(matrix.platform, 'ubuntu') && (matrix.jdk == 17)
4747
with:
4848
files: '**/target/surefire-reports/*.xml'

docs/partials/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1>Eclipse Checkstyle Plugin</h1>
88
<p style="margin-bottom: 5px;">
99
<a class="btn btn-primary btn-outline-inverse btn-lg" target="_blank"
1010
href="http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=150"
11-
title="Drag and drop this link into a running Eclipse (2021-06 or higher version) workspace to install the Eclipse Checkstyle Plugin">
11+
title="Drag and drop this link into a running Eclipse (2022-09 or higher version) workspace to install the Eclipse Checkstyle Plugin">
1212
<i class="fa fa-plug">
1313
</i>
1414
Install
@@ -24,7 +24,7 @@ <h1>Eclipse Checkstyle Plugin</h1>
2424
<small>
2525
<sup>1 </sup>
2626
Install via Eclipse Marketplace. Drag and drop this link into a running Eclipse
27-
(2021-06 or higher version) workspace. Latest release 10.14.1, see
27+
(2022-09 or higher version) workspace. Latest release 10.14.1, see
2828
<a href="#!/releasenotes">release notes</a>.
2929
</small>
3030
</div>

docs/partials/install.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ <h1>Installation</h1>
88
<p>
99
<a class="btn btn-primary btn-outline-inverse btn-lg" target="_blank"
1010
href="http://marketplace.eclipse.org/marketplace-client-intro?mpc_install=150"
11-
title="Drag and drop this link into a running Eclipse (2021-06 or higher version) workspace to install Checkstyle Plugin"
11+
title="Drag and drop this link into a running Eclipse (2022-09 or higher version) workspace to install Checkstyle Plugin"
1212
><i class="fa fa-plug"> </i> Install </a>
1313
</p>
1414
<ol>
15-
<li>Drag&amp;Drop the link above to a running Eclipse instance (2021-06 or higher version). This will trigger the
15+
<li>Drag&amp;Drop the link above to a running Eclipse instance (2022-09 or higher version). This will trigger the
1616
Eclipse Marketplace client with the Eclipse Checkstyle Plugin being pre-selected for
1717
installation.</li>
1818
<li>Confirm the selection of features to install.</li>

net.sf.eclipsecs-feature/feature.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</url>
2424

2525
<requires>
26-
<import plugin="org.eclipse.core.runtime" version="3.22.0" match="greaterOrEqual"/>
26+
<import plugin="org.eclipse.core.runtime" version="3.26.0" match="greaterOrEqual"/>
2727
<import plugin="org.eclipse.core.resources"/>
2828
<import plugin="org.eclipse.jdt.core"/>
2929
<import plugin="org.eclipse.team.core"/>

net.sf.eclipsecs-updatesite/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@
135135
<configuration>
136136
<repositories>
137137
<repository>
138-
<id>2021-06</id>
138+
<id>2022-09</id>
139139
<layout>p2</layout>
140-
<url>https://download.eclipse.org/releases/2021-06</url>
140+
<url>https://download.eclipse.org/releases/2022-09</url>
141141
</repository>
142142
</repositories>
143143
<dependencies>

net.sf.eclipsecs.checkstyle/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry exported="true" kind="lib" path="checkstyle-10.14.1-all.jar" sourcepath="checkstyle-checkstyle-10.14.1.zip"/>
4-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
55
<attributes>
66
<attribute name="maven.pomderived" value="true"/>
77
</attributes>

net.sf.eclipsecs.checkstyle/.settings/org.eclipse.jdt.core.prefs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
2121
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
2222
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
2323
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
24-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
24+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
2525
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
26-
org.eclipse.jdt.core.compiler.compliance=11
26+
org.eclipse.jdt.core.compiler.compliance=17
2727
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
2828
org.eclipse.jdt.core.compiler.debug.localVariable=generate
2929
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -125,7 +125,7 @@ org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
125125
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
126126
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
127127
org.eclipse.jdt.core.compiler.release=disabled
128-
org.eclipse.jdt.core.compiler.source=11
128+
org.eclipse.jdt.core.compiler.source=17
129129
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
130130
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
131131
org.eclipse.jdt.core.formatter.align_selector_in_method_invocation_on_expression_first_line=false

net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Bundle-SymbolicName: net.sf.eclipsecs.checkstyle
55
Bundle-Version: 10.14.1.qualifier
66
Bundle-Vendor: %Bundle-Vendor
77
Bundle-ActivationPolicy: lazy
8-
Bundle-RequiredExecutionEnvironment: JavaSE-11
8+
Bundle-RequiredExecutionEnvironment: JavaSE-17
99
Export-Package: .,
1010
com.puppycrawl.tools.checkstyle,
1111
com.puppycrawl.tools.checkstyle.api;

net.sf.eclipsecs.core/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
44
<attributes>
55
<attribute name="module" value="true"/>
66
</attributes>

net.sf.eclipsecs.core/.settings/org.eclipse.jdt.core.prefs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
2121
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
2222
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
2323
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
24-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
24+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
2525
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
26-
org.eclipse.jdt.core.compiler.compliance=11
26+
org.eclipse.jdt.core.compiler.compliance=17
2727
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
2828
org.eclipse.jdt.core.compiler.debug.localVariable=generate
2929
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -125,7 +125,7 @@ org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=error
125125
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=error
126126
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=error
127127
org.eclipse.jdt.core.compiler.release=disabled
128-
org.eclipse.jdt.core.compiler.source=11
128+
org.eclipse.jdt.core.compiler.source=17
129129
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
130130
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
131131
org.eclipse.jdt.core.formatter.align_selector_in_method_invocation_on_expression_first_line=false

0 commit comments

Comments
 (0)