Skip to content

Commit 03236bb

Browse files
authored
Add maven wrapper (#140)
1 parent efb0b63 commit 03236bb

8 files changed

Lines changed: 508 additions & 13 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
cache: 'maven'
2424
- name: Ensure to use tagged version
2525
if: startsWith(github.ref, 'refs/tags/')
26-
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
26+
run: ./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
2727
- name: Build and Test
28-
run: mvn -B verify --no-transfer-progress
28+
run: ./mvnw -B verify --no-transfer-progress
2929
- name: Attest
3030
if: startsWith(github.ref, 'refs/tags/')
3131
uses: actions/attest-build-provenance@96278af6caaf10aea03fd8d33a09a777ca52d62f # v3.2.0
@@ -56,14 +56,14 @@ jobs:
5656
server-password: MAVEN_CENTRAL_PASSWORD
5757
- name: Ensure to use tagged version
5858
if: startsWith(github.ref, 'refs/tags/')
59-
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
59+
run: ./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
6060
- name: Verify project version is -SNAPSHOT
6161
if: startsWith(github.ref, 'refs/tags/') == false
6262
run: |
63-
PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
63+
PROJECT_VERSION=$(./mvnw help:evaluate "-Dexpression=project.version" -q -DforceStdout)
6464
test "${PROJECT_VERSION: -9}" = "-SNAPSHOT"
6565
- name: Deploy to Maven Central
66-
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
66+
run: ./mvnw deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
6767
env:
6868
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
6969
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
@@ -87,14 +87,14 @@ jobs:
8787
cache: 'maven'
8888
- name: Ensure to use tagged version
8989
if: startsWith(github.ref, 'refs/tags/')
90-
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
90+
run: ./mvnw versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
9191
- name: Verify project version is -SNAPSHOT
9292
if: startsWith(github.ref, 'refs/tags/') == false
9393
run: |
94-
PROJECT_VERSION=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout)
94+
PROJECT_VERSION=$(./mvnw help:evaluate "-Dexpression=project.version" -q -DforceStdout)
9595
test "${PROJECT_VERSION: -9}" = "-SNAPSHOT"
9696
- name: Deploy to GitHub Packages
97-
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
97+
run: ./mvnw deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
9898
env:
9999
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100100
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ jobs:
2929
with:
3030
languages: java
3131
- name: Build
32-
run: mvn -B test
32+
run: ./mvnw -B test
3333
- name: Perform CodeQL Analysis
3434
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
cache: 'maven'
2525
- name: Build and Test
2626
id: buildAndTest
27-
run: mvn -B clean verify
27+
run: ./mvnw -B clean verify
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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Changes to prior versions can be found on the [Github release page](https://gith
1212
### Added
1313
* Flatpak Update Mechanism (#117)
1414
* New KeychainAccess service implementation based on freedesktop secret-service DBus API ([#125](https://github.com/cryptomator/integrations-linux/pull/125))
15+
* Use Maven wrapper for building
1516

1617
### Changed
1718
* Require JDK 25

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# integrations-linux
2-
Linux-specific implemenations of the [integrations-api](https://github.com/cryptomator/integrations-api).
2+
Linux-specific implementations of the [integrations-api](https://github.com/cryptomator/integrations-api).
33

44
# Config
55

66
This library uses the following JVM properties:
77
* `cryptomator.integrationsLinux.trayIconsDir` - specifies the directory from which svg images for the tray icon are loaded
88
* `cryptomator.integrationsLinux.autoStartCmd` - specifies the command used for starting Cryptomator
99

10-
## Building Requirements
10+
## Build
11+
12+
### Requirements
1113

1214
* JDK 25
13-
* Maven 3.9.6
15+
16+
### Execution
17+
```
18+
./mvnw verify
19+
```

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)