Merge pull request #1060 from dmitry-shibanov/v-dmshib/update-gradle-maven-workflow-caching

Add cache usage to the java starter-workflows
This commit is contained in:
Konrad Pabjan
2021-08-24 11:27:50 -04:00
committed by GitHub
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -18,6 +18,7 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
+2 -1
View File
@@ -1,4 +1,4 @@
# This workflow will build a Java project with Gradle
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
@@ -21,6 +21,7 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
+2 -1
View File
@@ -1,4 +1,4 @@
# This workflow will build a Java project with Maven
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
@@ -21,5 +21,6 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml