From 2ee4b3a084fc00cd369f69683e166ec87299c81a Mon Sep 17 00:00:00 2001 From: Rafal Garbat Date: Mon, 25 Mar 2024 07:48:06 +0100 Subject: [PATCH] chore: Support the latest Eclipse (4.31) and CDT (11.5) with java 17 --- .github/workflows/maven-ci.yml | 16 ++++++++---- README.md | 3 ++- .../META-INF/MANIFEST.MF | 2 +- .../feature.xml | 3 --- com.googlecode.cppcheclipse.parent/pom.xml | 25 +++++++++++++++++-- .../eclipse4.31cdtp2.target | 23 +++++++++++++++++ com.googlecode.cppcheclipse.target/pom.xml | 8 ++++-- .../META-INF/MANIFEST.MF | 2 +- 8 files changed, 67 insertions(+), 15 deletions(-) create mode 100644 com.googlecode.cppcheclipse.target/eclipse4.31cdtp2.target diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index 926b2d8..3f00e9b 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -8,10 +8,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 1.8 - - name: Build with Maven + java-version: 17 + distribution: 'temurin' + java-package: jdk + - name: Set up Maven 3.9.6 + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.6 + - name: Build with Maven (Java 17) run: mvn -B package --file com.googlecode.cppcheclipse.parent/pom.xml diff --git a/README.md b/README.md index 8de032f..baa13e8 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,9 @@ It will not increment the version number nor deploy/publish/release the artifact **NOTES:** +* This plugin was originally developed in [cppcheclipse project](https://github.com/kwin/cppcheclipse). +* Maven (3.9+) build will work under Java 17. * 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. -* Maven build will fail if Java 9 is used, while it will work under Java 8. Further information on how to use and install cppcheclipse can be found in the [wiki](https://github.com/kwin/cppcheclipse/wiki). diff --git a/com.googlecode.cppcheclipse.core.tests/META-INF/MANIFEST.MF b/com.googlecode.cppcheclipse.core.tests/META-INF/MANIFEST.MF index 0c10a81..0aa3e14 100644 --- a/com.googlecode.cppcheclipse.core.tests/META-INF/MANIFEST.MF +++ b/com.googlecode.cppcheclipse.core.tests/META-INF/MANIFEST.MF @@ -6,4 +6,4 @@ Bundle-Version: 1.1.2.qualifier Bundle-Vendor: Konrad Windszus Fragment-Host: com.googlecode.cppcheclipse.core;bundle-version="0.9.8" Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Require-Bundle: org.junit4;bundle-version="4.5.0" +Require-Bundle: org.junit;bundle-version="4.13.2" diff --git a/com.googlecode.cppcheclipse.feature/feature.xml b/com.googlecode.cppcheclipse.feature/feature.xml index 2585b39..c09b024 100644 --- a/com.googlecode.cppcheclipse.feature/feature.xml +++ b/com.googlecode.cppcheclipse.feature/feature.xml @@ -218,10 +218,7 @@ litigation. - - - diff --git a/com.googlecode.cppcheclipse.parent/pom.xml b/com.googlecode.cppcheclipse.parent/pom.xml index db9cf35..132f3c8 100644 --- a/com.googlecode.cppcheclipse.parent/pom.xml +++ b/com.googlecode.cppcheclipse.parent/pom.xml @@ -14,11 +14,32 @@ - 0.24.0 + 4.0.6 UTF-8 1.7 + + + java8 + + 1.8 + + + eclipse3.6cdtp2 + + + + java17 + + 17 + + + eclipse4.31cdtp2 + + + + @@ -39,7 +60,7 @@ com.googlecode.cppcheclipse.target com.googlecode.cppcheclipse ${project.version} - eclipse3.6cdtp2 + ${classifier} true diff --git a/com.googlecode.cppcheclipse.target/eclipse4.31cdtp2.target b/com.googlecode.cppcheclipse.target/eclipse4.31cdtp2.target new file mode 100644 index 0000000..fbf643e --- /dev/null +++ b/com.googlecode.cppcheclipse.target/eclipse4.31cdtp2.target @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.googlecode.cppcheclipse.target/pom.xml b/com.googlecode.cppcheclipse.target/pom.xml index 284d8a1..eed73a6 100644 --- a/com.googlecode.cppcheclipse.target/pom.xml +++ b/com.googlecode.cppcheclipse.target/pom.xml @@ -11,7 +11,7 @@ com.googlecode.cppcheclipse.target pom - + @@ -37,6 +37,11 @@ target eclipse4.3cdtp2 + + eclipse4.31cdtp2.target + target + eclipse4.31cdtp2 + @@ -45,5 +50,4 @@ - \ No newline at end of file diff --git a/com.googlecode.cppcheclipse.ui.tests/META-INF/MANIFEST.MF b/com.googlecode.cppcheclipse.ui.tests/META-INF/MANIFEST.MF index b36e2df..662fa8f 100644 --- a/com.googlecode.cppcheclipse.ui.tests/META-INF/MANIFEST.MF +++ b/com.googlecode.cppcheclipse.ui.tests/META-INF/MANIFEST.MF @@ -6,4 +6,4 @@ Bundle-Version: 1.1.2.qualifier Bundle-Vendor: Konrad Windszus Fragment-Host: com.googlecode.cppcheclipse.ui;bundle-version="0.9.8" Bundle-RequiredExecutionEnvironment: JavaSE-1.7 -Require-Bundle: org.junit4;bundle-version="4.8.1" +Require-Bundle: org.junit;bundle-version="4.13.2"