|
27 | 27 |
|
28 | 28 | permissions: {} |
29 | 29 |
|
| 30 | +env: |
| 31 | + MAVEN_OPTS: > |
| 32 | + -Dhttps.protocols=TLSv1.2 |
| 33 | + -Dmaven.repo.local=.m2/repository |
| 34 | + -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN |
| 35 | + -Dorg.slf4j.simpleLogger.showDateTime=true |
| 36 | + -Djava.awt.headless=true |
| 37 | + MAVEN_CLI_OPTS: > |
| 38 | + --batch-mode |
| 39 | + --errors |
| 40 | + --fail-at-end |
| 41 | + --show-version |
| 42 | + -DinstallAtEnd=true |
| 43 | + -DdeployAtEnd=true |
| 44 | +
|
30 | 45 | jobs: |
31 | 46 | check: |
32 | 47 | runs-on: ubuntu-latest |
33 | 48 | steps: |
34 | 49 | - name: Set VERSION |
35 | 50 | shell: bash |
36 | 51 | run: echo "VERSION=$(curl -s -S "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/latest" | jq -r '.tag_name' | sed -e 's/^v//')" >> "${GITHUB_ENV}" |
| 52 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
37 | 53 | - name: Set up JDK |
38 | 54 | uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 |
39 | 55 | with: |
|
42 | 58 | - name: Download |
43 | 59 | shell: bash |
44 | 60 | run: | |
45 | | - ./mvnw -DgroupId=org.leplus -DartifactId=ristretto -Dversion=${VERSION} -Dtransitive=false dependency:get |
46 | | - ./mvnw -DgroupId=org.leplus -DartifactId=ristretto -Dversion=${VERSION} -Dclassifier=sources dependency:get |
47 | | - ./mvnw -DgroupId=org.leplus -DartifactId=ristretto -Dversion=${VERSION} -Dclassifier=javadoc dependency:get |
48 | | - ./mvnw -DgroupId=org.leplus -DartifactId=ristretto -Dversion=${VERSION} -Dclassifier=cyclonedx -Dpackaging=json dependency:get |
49 | | - ./mvnw -DgroupId=org.leplus -DartifactId=ristretto -Dversion=${VERSION} -Dclassifier=cyclonedx -Dpackaging=xml dependency:get |
| 61 | + # shellcheck disable=SC2086 |
| 62 | + ./mvnw ${MAVEN_CLI_OPTS} -DgroupId=org.leplus -DartifactId=ristretto "-Dversion=${VERSION}" -Dtransitive=false dependency:get |
| 63 | + # shellcheck disable=SC2086 |
| 64 | + ./mvnw ${MAVEN_CLI_OPTS} -DgroupId=org.leplus -DartifactId=ristretto "-Dversion=${VERSION}" -Dclassifier=sources dependency:get |
| 65 | + # shellcheck disable=SC2086 |
| 66 | + ./mvnw ${MAVEN_CLI_OPTS} -DgroupId=org.leplus -DartifactId=ristretto "-Dversion=${VERSION}" -Dclassifier=javadoc dependency:get |
| 67 | + # shellcheck disable=SC2086 |
| 68 | + ./mvnw ${MAVEN_CLI_OPTS} -DgroupId=org.leplus -DartifactId=ristretto "-Dversion=${VERSION}" -Dclassifier=cyclonedx -Dpackaging=json dependency:get |
| 69 | + # shellcheck disable=SC2086 |
| 70 | + ./mvnw ${MAVEN_CLI_OPTS} -DgroupId=org.leplus -DartifactId=ristretto "-Dversion=${VERSION}" -Dclassifier=cyclonedx -Dpackaging=xml dependency:get |
0 commit comments