diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 694725891..7355e6dc2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,10 +37,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up JDK 11 uses: actions/setup-java@v4 with: - java-version: '8' + java-version: '11' distribution: 'temurin' # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index abfbee5a3..fa86f6225 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -16,14 +16,14 @@ jobs: strategy: matrix: - java: [ '8', '11', '17', '21'] + java: [ '11', '17', '21', '23'] steps: - uses: actions/checkout@v4 - name: Verify gradle wrapper uses: gradle/actions/wrapper-validation@v4 - if: matrix.java == '8' + if: matrix.java == '11' - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v4 diff --git a/RSyntaxTextArea/build.gradle b/RSyntaxTextArea/build.gradle index 10a942ffc..dc9e43026 100755 --- a/RSyntaxTextArea/build.gradle +++ b/RSyntaxTextArea/build.gradle @@ -1,10 +1,7 @@ -import static org.gradle.api.JavaVersion.* - ['base', 'jacoco', 'biz.aQute.bnd.builder', 'distribution', 'maven-publish', 'signing'].each { apply plugin: it } -// We require building with JDK 8 or later. We turn off doclint since our -// generated *TokenMakers have horrible documentation (see https://github.com/jflex-de/jflex/issues/182) -assert current().isJava8Compatible() +// Turn off doclint since our generated *TokenMakers have horrible +// documentation (see https://github.com/jflex-de/jflex/issues/182) allprojects { tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') @@ -36,7 +33,7 @@ jar { 'Implementation-Version': version, 'Bundle-License': 'BSD-3-Clause', // Not sure why Require-Capability is not being added by the osgi plugin... - 'Require-Capability': 'osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=' + javaVersion + '))"') + 'Require-Capability': 'osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.' + osgiRequiredCompatibility + '))"') } } test { diff --git a/build.gradle b/build.gradle index 941fc1a46..210e787f4 100755 --- a/build.gradle +++ b/build.gradle @@ -11,8 +11,12 @@ plugins { id 'com.github.spotbugs' version '5.2.5' } +// We require building with JDK 11 or later. Built artifact compatibility +// is controlled by javaLanguageVersion +assert JavaVersion.current().isJava11Compatible() + group 'com.fifesoft' -// NOTE: Local Java 8: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home +// NOTE: Local Java 11: /Library/Java/JavaVirtualMachines/jdk-11.0.25+9/Contents/Home allprojects { @@ -24,7 +28,7 @@ allprojects { } wrapper { - gradleVersion = '8.10.2' + gradleVersion = '8.11.1' } } @@ -81,8 +85,7 @@ subprojects { } compileJava { - sourceCompatibility javaVersion.toString() - targetCompatibility javaVersion.toString() + options.release = Integer.parseInt(javaLanguageVersion) options.debug = true options.debugOptions.debugLevel = 'source,vars,lines' options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked' diff --git a/gradle.properties b/gradle.properties index 62c1a58ea..c6edd3bdd 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,6 @@ # Note that Maven- and signing-related properties are in /gradle.properties -javaVersion=1.8 +javaLanguageVersion=8 +osgiRequiredCompatibility=1.8 version=3.5.3-SNAPSHOT # Ugh, see https://github.com/gradle/gradle/issues/11308 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index df97d72b8..e2847c820 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME