Skip to content

Commit f0b76c5

Browse files
committed
Adjust Maven workflows and minor script fix
Add newline at end of .github/scripts/generate-wiki-docs.py. In maven-build.yml enable the Maven cache and switch the build step to use system mvn (to leverage caching). In maven-publish.yml remove server credentials and cache settings from the setup-java step and switch the publish step to use the Maven wrapper (./mvnw) for consistent publish execution.
1 parent 69e572e commit f0b76c5

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/scripts/generate-wiki-docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,4 +828,4 @@ def main():
828828

829829

830830
if __name__ == "__main__":
831-
sys.exit(main())
831+
sys.exit(main())

.github/workflows/maven-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
with:
3333
distribution: 'temurin'
3434
java-version: ${{ matrix.java }}
35+
cache: maven
3536

3637
- name: Build with Maven
37-
run: ./mvnw
38+
run: mvn
3839
--batch-mode
3940
--update-snapshots
4041
--file pom.xml

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,9 @@ jobs:
4040
with:
4141
java-version: '11'
4242
distribution: 'temurin'
43-
server-id: ossrh
44-
server-username: MAVEN_USERNAME
45-
server-password: MAVEN_PASSWORD
46-
cache: maven
4743

4844
- name: Publish package
49-
run: mvn
45+
run: ./mvnw
5046
--batch-mode
5147
--update-snapshots
5248
--file pom.xml

0 commit comments

Comments
 (0)