Skip to content

Commit 2ee4b3a

Browse files
committed
chore: Support the latest Eclipse (4.31) and CDT (11.5) with java 17
1 parent 3979e5b commit 2ee4b3a

File tree

8 files changed

+67
-15
lines changed

8 files changed

+67
-15
lines changed

.github/workflows/maven-ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: Set up JDK 1.8
13-
uses: actions/setup-java@v1
11+
- uses: actions/checkout@v3
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v4
1414
with:
15-
java-version: 1.8
16-
- name: Build with Maven
15+
java-version: 17
16+
distribution: 'temurin'
17+
java-package: jdk
18+
- name: Set up Maven 3.9.6
19+
uses: stCarolas/setup-maven@v5
20+
with:
21+
maven-version: 3.9.6
22+
- name: Build with Maven (Java 17)
1723
run: mvn -B package --file com.googlecode.cppcheclipse.parent/pom.xml

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ It will not increment the version number nor deploy/publish/release the artifact
1111

1212
**NOTES:**
1313

14+
* This plugin was originally developed in [cppcheclipse project](https://github.com/kwin/cppcheclipse).
15+
* Maven (3.9+) build will work under Java 17.
1416
* Under Windows the `mvn clean verify` will fail because the unit test paths in unix format. As workaround skip the tests `mvn clean package` should build successfully, but it will not create.
15-
* Maven build will fail if Java 9 is used, while it will work under Java 8.
1617

1718

1819
Further information on how to use and install cppcheclipse can be found in the [wiki](https://github.com/kwin/cppcheclipse/wiki).

com.googlecode.cppcheclipse.core.tests/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Bundle-Version: 1.1.2.qualifier
66
Bundle-Vendor: Konrad Windszus
77
Fragment-Host: com.googlecode.cppcheclipse.core;bundle-version="0.9.8"
88
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
9-
Require-Bundle: org.junit4;bundle-version="4.5.0"
9+
Require-Bundle: org.junit;bundle-version="4.13.2"

com.googlecode.cppcheclipse.feature/feature.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,7 @@ litigation.
218218
</url>
219219

220220
<requires>
221-
<import plugin="org.eclipse.ui" version="3.4.0" match="greaterOrEqual"/>
222-
<import plugin="org.eclipse.core.runtime" version="3.4.0" match="greaterOrEqual"/>
223221
<import plugin="com.googlecode.cppcheclipse.core" version="1.0.0" match="greaterOrEqual"/>
224-
<import plugin="org.eclipse.core.resources" version="3.4.0" match="greaterOrEqual"/>
225222
<import plugin="org.eclipse.cdt.core" version="5.0.0" match="greaterOrEqual"/>
226223
<import plugin="org.eclipse.ui.editors" version="3.4.0" match="greaterOrEqual"/>
227224
<import plugin="org.eclipse.jface.text" version="3.4.0" match="greaterOrEqual"/>

com.googlecode.cppcheclipse.parent/pom.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,32 @@
1414
</prerequisites>
1515

1616
<properties>
17-
<tycho-version>0.24.0</tycho-version>
17+
<tycho-version>4.0.6</tycho-version>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1919
<maven-antrun-plugin.version>1.7</maven-antrun-plugin.version>
2020
</properties>
2121

22+
<profiles>
23+
<profile>
24+
<id>java8</id>
25+
<activation>
26+
<jdk>1.8</jdk>
27+
</activation>
28+
<properties>
29+
<classifier>eclipse3.6cdtp2</classifier>
30+
</properties>
31+
</profile>
32+
<profile>
33+
<id>java17</id>
34+
<activation>
35+
<jdk>17</jdk>
36+
</activation>
37+
<properties>
38+
<classifier>eclipse4.31cdtp2</classifier>
39+
</properties>
40+
</profile>
41+
</profiles>
42+
2243
<build>
2344
<plugins>
2445
<plugin>
@@ -39,7 +60,7 @@
3960
<artifactId>com.googlecode.cppcheclipse.target</artifactId>
4061
<groupId>com.googlecode.cppcheclipse</groupId>
4162
<version>${project.version}</version>
42-
<classifier>eclipse3.6cdtp2</classifier>
63+
<classifier>${classifier}</classifier>
4364
</artifact>
4465
</target>
4566
<ignoreTychoRepositories>true</ignoreTychoRepositories>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?pde version="3.8"?><target name="Eclipse 4.31 CDT" sequenceNumber="6">
3+
<locations>
4+
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
5+
<unit id="org.eclipse.platform.ide" version="4.31.0.I20240229-0520"/>
6+
<unit id="org.eclipse.sdk.feature.group" version="4.31.0.v20240229-1022"/>
7+
<unit id="org.eclipse.sdk.ide" version="4.31.0.I20240229-0520"/>
8+
<repository location="http://download.eclipse.org/eclipse/updates/4.31"/>
9+
</location>
10+
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
11+
<unit id="org.eclipse.cdt.feature.group" version="11.5.0.202403041627"/>
12+
<unit id="org.eclipse.cdt.sdk.feature.group" version="11.5.0.202403041627"/>
13+
<repository location="http://download.eclipse.org/tools/cdt/releases/11.5"/>
14+
</location>
15+
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
16+
<unit id="org.apache.commons.codec" version="1.4.0.v201209201156"/>
17+
<unit id="org.apache.commons.io" version="2.0.1.v201105210651"/>
18+
<unit id="com.google.guava" version="12.0.0.v201212092141"/>
19+
<unit id="org.apache.commons.exec" version="1.1.0.v201301240602"/>
20+
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20140114142710/repository/"/>
21+
</location>
22+
</locations>
23+
</target>

com.googlecode.cppcheclipse.target/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<artifactId>com.googlecode.cppcheclipse.target</artifactId>
1313
<packaging>pom</packaging>
14-
14+
1515
<build>
1616
<plugins>
1717
<plugin>
@@ -37,6 +37,11 @@
3737
<type>target</type>
3838
<classifier>eclipse4.3cdtp2</classifier>
3939
</artifact>
40+
<artifact>
41+
<file>eclipse4.31cdtp2.target</file>
42+
<type>target</type>
43+
<classifier>eclipse4.31cdtp2</classifier>
44+
</artifact>
4045
</artifacts>
4146
</configuration>
4247
</execution>
@@ -45,5 +50,4 @@
4550
</plugins>
4651
</build>
4752

48-
4953
</project>

com.googlecode.cppcheclipse.ui.tests/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Bundle-Version: 1.1.2.qualifier
66
Bundle-Vendor: Konrad Windszus
77
Fragment-Host: com.googlecode.cppcheclipse.ui;bundle-version="0.9.8"
88
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
9-
Require-Bundle: org.junit4;bundle-version="4.8.1"
9+
Require-Bundle: org.junit;bundle-version="4.13.2"

0 commit comments

Comments
 (0)