Skip to content
Snippets Groups Projects
Unverified Commit cf7acdf3 authored by Robin Stocker's avatar Robin Stocker Committed by GitHub
Browse files

Merge pull request #299 from commonmark/java-21

Raise minimum version to Java 11 (and test on 21 as well)
parents a88ab234 01fd7732
No related branches found
No related tags found
No related merge requests found
...@@ -9,15 +9,16 @@ jobs: ...@@ -9,15 +9,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
java: [1.8, 11, 17] java: [11, 17, 21]
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v1 uses: actions/setup-java@v2
with: with:
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Build - name: Build
run: mvn -B package javadoc:javadoc run: mvn -B package javadoc:javadoc
...@@ -29,9 +30,10 @@ jobs: ...@@ -29,9 +30,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v1 uses: actions/setup-java@v2
with: with:
java-version: 1.8 java-version: 11
distribution: 'zulu'
- name: Build with coverage - name: Build with coverage
run: mvn -B -Pcoverage clean test jacoco:report-aggregate run: mvn -B -Pcoverage clean test jacoco:report-aggregate
...@@ -46,9 +48,10 @@ jobs: ...@@ -46,9 +48,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v1 uses: actions/setup-java@v2
with: with:
java-version: 1.8 java-version: 11
distribution: 'zulu'
- name: Android Lint checks - name: Android Lint checks
run: cd commonmark-android-test && ./gradlew :app:lint run: cd commonmark-android-test && ./gradlew :app:lint
...@@ -17,9 +17,10 @@ jobs: ...@@ -17,9 +17,10 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Maven Central repository - name: Set up Maven Central repository
uses: actions/setup-java@v1 uses: actions/setup-java@v2
with: with:
java-version: 1.8 java-version: 11
distribution: 'zulu'
server-id: ossrh server-id: ossrh
server-username: MAVEN_USERNAME # env variable to use for username in release server-username: MAVEN_USERNAME # env variable to use for username in release
server-password: MAVEN_PASSWORD # env variable to use for password in release server-password: MAVEN_PASSWORD # env variable to use for password in release
......
...@@ -23,9 +23,9 @@ full library with a nice API and the following features: ...@@ -23,9 +23,9 @@ full library with a nice API and the following features:
* Flexible (manipulate the AST after parsing, customize HTML rendering) * Flexible (manipulate the AST after parsing, customize HTML rendering)
* Extensible (tables, strikethrough, autolinking and more, see below) * Extensible (tables, strikethrough, autolinking and more, see below)
The library is supported on Java 8 or later. It should work on Java 7 The library is supported on Java 11 and later. It should work on Android too,
and Android too, but that is on a best-effort basis, please report but that is on a best-effort basis, please report problems. For Android the
problems. For Android the minimum API level is 19, see the minimum API level is 19, see the
[commonmark-android-test](commonmark-android-test) directory. [commonmark-android-test](commonmark-android-test) directory.
Coordinates for core library (see all on [Maven Central]): Coordinates for core library (see all on [Maven Central]):
......
...@@ -38,10 +38,9 @@ ...@@ -38,10 +38,9 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version> <version>3.12.1</version>
<configuration> <configuration>
<source>7</source> <release>11</release>
<target>7</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment