Skip to content

Commit e48461c

Browse files
authored
add maven wrapper (#341)
1 parent 7ca120f commit e48461c

8 files changed

Lines changed: 499 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
restore-keys: ${{ runner.os }}-sonar
3535
- name: Ensure to use tagged version
3636
if: startsWith(github.ref, 'refs/tags/')
37-
run: mvn -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
37+
run: ./mvnw -B versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
3838
- name: Build and Test
3939
run: >
40-
mvn -B verify
40+
./mvnw -B verify
4141
jacoco:report
4242
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
4343
-Pcoverage

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ jobs:
3030
with:
3131
languages: java
3232
- name: Build
33-
run: mvn -B install -DskipTests
33+
run: ./mvnw -B install -DskipTests
3434
- name: Perform CodeQL Analysis
3535
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4

.github/workflows/publish-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
server-username: MAVEN_CENTRAL_USERNAME
1818
server-password: MAVEN_CENTRAL_PASSWORD
1919
- name: Enforce project version ${{ github.event.release.tag_name }}
20-
run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
20+
run: ./mvnw versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
2121
- name: Deploy
22-
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
22+
run: ./mvnw deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
2323
env:
2424
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
2525
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

.github/workflows/publish-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
distribution: 'temurin'
1515
cache: 'maven'
1616
- name: Enforce project version ${{ github.event.release.tag_name }}
17-
run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
17+
run: ./mvnw versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
1818
- name: Deploy
19-
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
19+
run: ./mvnw deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
wrapperVersion=3.3.4
2+
distributionType=only-script
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip
4+
distributionSha256Sum=305773a68d6ddfd413df58c82b3f8050e89778e777f3a745c8e5b8cbea4018ef

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,12 @@ For more details on how to use the constructed `FileSystem`, you may consult the
9797

9898
## Building
9999

100-
### Dependencies
101-
102-
* Java 25
103-
* Maven 3
104-
105-
### Run Maven
100+
Required dependencies
101+
* JDK 25
106102

103+
To build the project, run
107104
```bash
108-
mvn clean install
105+
./mvnw clean install
109106
```
110107

111108
## Contributing to CryptoFS

mvnw

Lines changed: 295 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)