Skip to content

Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0 #200

Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0

Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.3.0 to 3.4.0 #200

name: Build with Gradle using Batect
on:
push:
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
workflow_dispatch:
jobs:
build:
name: Builds and tests for Gradle
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@master
- name: Validate Batect wrapper scripts
uses: batect/[email protected]
- name: Restore Batect caches
uses: actions/cache@master
env:
cache-name: batect-cache
with:
path: ~/.batect
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/batect.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Manage Batect telemetry
run: ./batect --permanently-enable-telemetry
- name: Restore Gradle caches
uses: actions/cache@master
env:
cache-name: gradle-cache
with:
path: ~/.gradle
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{hashFiles('**/build.gradle') }}
# TODO: See discussion: https://github.com/jeremylong/DependencyCheck/issues/2560#issuecomment-702098748
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build and test
run: ./batect build-with-gradle
- name: Execute run script
run: ./batect -o quiet run-with-gradle
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: jars
path: build/libs/modern-java-practices*.jar