This commit is contained in:
Amith Koujalgi 2023-10-27 11:20:44 +05:30
parent 41d1fa5a27
commit d33e66772a
2 changed files with 11 additions and 6 deletions

View File

@ -3,9 +3,14 @@
name: Maven Package
#on:
# release:
# types: [created]
on:
release:
types: [created]
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
@ -17,10 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '8'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

View File

@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>20</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>