Skip to content

Commit

Permalink
upgrade to Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Oct 7, 2022
1 parent 9fadbbf commit 73ba7c2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:
shell: bash

env:
JAVA_VERSION: 11
JAVA_VERSION: 17

jobs:

Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## <a name="what-is-it"></a>What is it?

This plugin extends Eclipse with a **Find/Replace** view that allows to conveniently
This plugin extends [EclipseⓇ](https://eclipse.org) with a **Find/Replace** view that allows to conveniently
perform find/replace operations within the currently active editor.

![](src/site/img/screen.png)
Expand Down Expand Up @@ -56,10 +56,9 @@ compatibility of the compiled artifacts with the runtime library of the required

To build the project follow these steps:

1. Download and install a Java 11 SDK, e.g. from:
- https://github.com/ojdkbuild/ojdkbuild
- https://adoptium.net/releases.html?variant=openjdk11
- https://www.azul.com/downloads/?version=java-11-lts&architecture=x86-64-bit&package=jdk
1. Download and install a Java 17 SDK, e.g. from:
- https://adoptium.net/releases.html?variant=openjdk17
- https://www.azul.com/downloads/?version=java-17-lts&architecture=x86-64-bit&package=jdk

1. Download and install the latest [Maven distribution](https://maven.apache.org/download.cgi).

Expand All @@ -71,17 +70,17 @@ To build the project follow these steps:
<toolchain>
<type>jdk</type>
<provides>
<version>11</version>
<version>17</version>
<vendor>default</vendor>
</provides>
<configuration>
<jdkHome>[PATH_TO_YOUR_JDK_11]</jdkHome>
<jdkHome>[PATH_TO_YOUR_JDK_17]</jdkHome>
</configuration>
</toolchain>
</toolchains>
```

Set the `[PATH_TO_YOUR_JDK_11]` parameter accordingly.
Set the `[PATH_TO_YOUR_JDK_17]` parameter accordingly.

1. Checkout the code using one of the following methods:

Expand Down
2 changes: 2 additions & 0 deletions build.target
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@
</dependencies>
</location>
</locations>

<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
</target>
6 changes: 3 additions & 3 deletions plugin/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
org.eclipse.jdt.core.compiler.source=17
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<name>Sebastian Thomschke</name>
<url>https://github.com/sebthom</url>
</organization>

<licenses>
<license>
<name>Eclipse Public License 2.0</name>
Expand All @@ -36,7 +37,7 @@
</licenses>

<properties>
<java.version>11</java.version>
<java.version>17</java.version>
<tycho.version>2.7.4</tycho.version>

<!-- to prevent dozen of warnings like:
Expand Down

0 comments on commit 73ba7c2

Please sign in to comment.