Skip to content

Commit

Permalink
Use Java 11
Browse files Browse the repository at this point in the history
Fixes #547
  • Loading branch information
mickaelistria authored and jonahgraham committed Mar 13, 2023
1 parent 4bad511 commit babc407
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Fixed issues: <https://github.com/eclipse/lsp4j/milestone/28?closed=1>

Breaking API changes:

* LSP4J now requires Java 11 to build and run. This can be observed in the japicmp
report which says class file format version changed from 52.0 to 55.0.
<https://github.com/eclipse/lsp4j/issues/547>.

Nightly japicmp report: <https://download.eclipse.org/lsp4j/builds/main/japicmp-report/>

### [v0.20.1 (February 2023)](https://github.com/eclipse/lsp4j/releases/tag/v0.20.1)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contribution Guide

The project is build with Gradle and written in Java 8.
The project is build with Gradle and written in Java 11.

To start working on it simply clone and run `./gradlew build`. See the section [below](#Eclipse) on building and editing with Eclipse for step-by-step instructions.

Expand Down
2 changes: 1 addition & 1 deletion gradle/java-compiler-settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/

sourceCompatibility = '1.8'
sourceCompatibility = '11'

tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
Expand Down
2 changes: 1 addition & 1 deletion gradle/manifest-gen.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def qualifiedVersion = baseVersion + '.v' + buildTime
jar.bnd (
'Bundle-Version': qualifiedVersion,
'Bundle-Vendor': 'Eclipse LSP4J',
'Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8',
'Bundle-RequiredExecutionEnvironment': 'JavaSE-11',
"-exportcontents": "org.eclipse.lsp4j.*",
"-savemanifest": "$buildDir/tmp/bnd/MANIFEST.MF",
)
Expand Down
4 changes: 2 additions & 2 deletions org.eclipse.lsp4j/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
ext.title = 'LSP4J'
description = 'Java bindings for the Language Server Protocol'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'
sourceCompatibility = '11'
targetCompatibility = '11'

dependencies {
compileOnly project(":org.eclipse.lsp4j.generator")
Expand Down
2 changes: 1 addition & 1 deletion releng/build.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline {
}
tools {
maven 'apache-maven-latest'
jdk 'oracle-jdk8-latest'
jdk 'temurin-jdk11-latest'
}
options {
timestamps()
Expand Down
2 changes: 1 addition & 1 deletion releng/release-eclipse.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline {
}
tools {
maven 'apache-maven-latest'
jdk 'oracle-jdk8-latest'
jdk 'temurin-jdk11-latest'
}
options {
timestamps()
Expand Down

0 comments on commit babc407

Please sign in to comment.