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

View File

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