Skip to content

Commit f692cc5

Browse files
committed
Linting
1 parent f7e1a0b commit f692cc5

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/maven-central.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,29 @@ on:
2727

2828
permissions: {}
2929

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+
3045
jobs:
3146
check:
3247
runs-on: ubuntu-latest
3348
steps:
3449
- name: Set VERSION
3550
shell: bash
3651
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
3753
- name: Set up JDK
3854
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
3955
with:
@@ -42,8 +58,13 @@ jobs:
4258
- name: Download
4359
shell: bash
4460
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

Comments
 (0)