Skip to content

Commit a5b5a7d

Browse files
committed
Align java version in pom and publish workflow
Align the java version in the pom and the publish workflow.
1 parent fbde84f commit a5b5a7d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Set up JDK 11
12+
- name: Set up JDK 1.8
1313
uses: actions/setup-java@v2
1414
with:
15-
distribution: 'temurin'
16-
java-version: '11'
15+
distribution: 'adopt'
16+
java-version: '8'
1717

1818
- name: Build with Maven
1919
run: mvn -B package --file pom.xml
2020

2121
- name: Set up Maven Central
2222
uses: actions/setup-java@v2
2323
with:
24-
distribution: 'temurin'
25-
java-version: '11'
24+
distribution: 'adopt'
25+
java-version: '8'
2626
server-id: ossrh
2727
server-username: MAVEN_USERNAME
2828
server-password: MAVEN_PASSWORD

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
295295
</dependency>
296296
</dependencies>
297297
<properties>
298-
<java.version>1.7</java.version>
298+
<java.version>1.8</java.version>
299299
<maven.compiler.source>${java.version}</maven.compiler.source>
300300
<maven.compiler.target>${java.version}</maven.compiler.target>
301301
<gson-fire-version>1.8.5</gson-fire-version>

0 commit comments

Comments
 (0)