Skip to content

Commit f35693c

Browse files
committed
Merge branch 'release/1.4.0'
2 parents 7a15e92 + 7663ccb commit f35693c

File tree

13 files changed

+114
-74
lines changed

13 files changed

+114
-74
lines changed

.github/dependabot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "maven"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
day: "monday"
8+
time: "06:00"
9+
timezone: "Etc/UTC"
10+
groups:
11+
java-test-dependencies:
12+
patterns:
13+
- "org.junit.jupiter:*"
14+
maven-build-plugins:
15+
patterns:
16+
- "org.apache.maven.plugins:*"
17+
- "org.owasp:dependency-check-maven"
18+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
19+
java-production-dependencies:
20+
patterns:
21+
- "*"
22+
exclude-patterns:
23+
- "org.junit.jupiter:*"
24+
- "org.apache.maven.plugins:*"
25+
- "org.owasp:dependency-check-maven"
26+
- "org.sonatype.plugins:nexus-staging-maven-plugin"
27+
28+
- package-ecosystem: "github-actions"
29+
directory: "/" # even for `.github/workflows`
30+
schedule:
31+
interval: "monthly"
32+
groups:
33+
github-actions:
34+
patterns:
35+
- "*"

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-java@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-java@v4
1212
with:
1313
distribution: 'zulu'
14-
java-version: 20
14+
java-version: 21
1515
cache: 'maven'
1616
- name: Ensure to use tagged version
1717
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ jobs:
1313
analyse:
1414
name: Analyse
1515
runs-on: ubuntu-latest
16-
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
16+
# dependeabot has on push events only read-only access, but codeql requires write access
17+
if: ${{ !(github.actor == 'dependabot[bot]' && contains(fromJSON('["push"]'), github.event_name)) }}
1718
steps:
18-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1920
with:
2021
fetch-depth: 2
21-
- uses: actions/setup-java@v3
22+
- uses: actions/setup-java@v4
2223
with:
2324
distribution: 'zulu'
24-
java-version: 20
25+
java-version: 21
2526
cache: 'maven'
2627
- name: Initialize CodeQL
2728
uses: github/codeql-action/init@v2

.github/workflows/publish-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
ref: "refs/tags/${{ github.event.inputs.tag }}"
16-
- uses: actions/setup-java@v3
16+
- uses: actions/setup-java@v4
1717
with:
1818
distribution: 'zulu'
19-
java-version: 20
19+
java-version: 21
2020
cache: 'maven'
2121
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2222
server-username: MAVEN_USERNAME # env variable for username in deploy

.github/workflows/publish-github.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-java@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-java@v4
1212
with:
1313
distribution: 'zulu'
14-
java-version: 20
14+
java-version: 21
1515
cache: 'maven'
1616
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
1717
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.cryptomator</groupId>
77
<artifactId>integrations-linux</artifactId>
8-
<version>1.3.0</version>
8+
<version>1.4.0</version>
99

1010
<name>integrations-linux</name>
1111
<description>Provides optional Linux services used by Cryptomator</description>
@@ -36,23 +36,21 @@
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<project.jdk.version>20</project.jdk.version>
39+
<project.jdk.version>21</project.jdk.version>
4040

4141
<!-- runtime dependencies -->
4242

4343
<api.version>1.3.0</api.version>
44-
<secret-service.version>1.8.1-jdk17</secret-service.version>
45-
<kdewallet.version>1.3.2</kdewallet.version>
46-
<appindicator.version>1.3.4</appindicator.version>
47-
<guava.version>32.0.0-jre</guava.version>
48-
<slf4j.version>1.7.36</slf4j.version>
49-
<commons-lang3.version>3.12.0</commons-lang3.version>
44+
<secret-service.version>2.0.0-alpha</secret-service.version>
45+
<kdewallet.version>1.3.3</kdewallet.version>
46+
<appindicator.version>1.3.6</appindicator.version>
47+
<slf4j.version>2.0.9</slf4j.version>
5048

5149
<!-- test dependencies -->
52-
<junit.version>5.8.2</junit.version>
50+
<junit.version>5.10.1</junit.version>
5351

5452
<!-- build plugin dependencies -->
55-
<dependency-check.version>8.2.1</dependency-check.version>
53+
<dependency-check.version>8.4.2</dependency-check.version>
5654
<nexus-staging.version>1.6.8</nexus-staging.version>
5755
</properties>
5856

@@ -67,11 +65,6 @@
6765
<artifactId>slf4j-api</artifactId>
6866
<version>${slf4j.version}</version>
6967
</dependency>
70-
<dependency>
71-
<groupId>com.google.guava</groupId>
72-
<artifactId>guava</artifactId>
73-
<version>${guava.version}</version>
74-
</dependency>
7568
<dependency>
7669
<groupId>de.swiesend</groupId>
7770
<artifactId>secret-service</artifactId>
@@ -82,12 +75,6 @@
8275
<artifactId>kdewallet</artifactId>
8376
<version>${kdewallet.version}</version>
8477
</dependency>
85-
<!-- Apache Commons -->
86-
<dependency>
87-
<groupId>org.apache.commons</groupId>
88-
<artifactId>commons-lang3</artifactId>
89-
<version>${commons-lang3.version}</version>
90-
</dependency>
9178
<!-- Java bindings for appindicator -->
9279
<dependency>
9380
<groupId>org.purejava</groupId>
@@ -107,7 +94,7 @@
10794
<plugin>
10895
<groupId>org.apache.maven.plugins</groupId>
10996
<artifactId>maven-compiler-plugin</artifactId>
110-
<version>3.9.0</version>
97+
<version>3.11.0</version>
11198
<configuration>
11299
<release>${project.jdk.version}</release>
113100
<compilerArgs>
@@ -118,12 +105,12 @@
118105
<plugin>
119106
<groupId>org.apache.maven.plugins</groupId>
120107
<artifactId>maven-surefire-plugin</artifactId>
121-
<version>3.0.0-M5</version>
108+
<version>3.2.1</version>
122109
</plugin>
123110
<plugin>
124111
<groupId>org.apache.maven.plugins</groupId>
125112
<artifactId>maven-enforcer-plugin</artifactId>
126-
<version>3.0.0</version>
113+
<version>3.4.1</version>
127114
<executions>
128115
<execution>
129116
<id>check-preconditions</id>
@@ -144,7 +131,7 @@
144131
</plugin>
145132
<plugin>
146133
<artifactId>maven-source-plugin</artifactId>
147-
<version>3.2.1</version>
134+
<version>3.3.0</version>
148135
<executions>
149136
<execution>
150137
<id>attach-sources</id>
@@ -156,7 +143,7 @@
156143
</plugin>
157144
<plugin>
158145
<artifactId>maven-javadoc-plugin</artifactId>
159-
<version>3.3.1</version>
146+
<version>3.6.0</version>
160147
<executions>
161148
<execution>
162149
<id>attach-javadocs</id>
@@ -248,7 +235,7 @@
248235
<plugins>
249236
<plugin>
250237
<artifactId>maven-gpg-plugin</artifactId>
251-
<version>3.0.1</version>
238+
<version>3.1.0</version>
252239
<executions>
253240
<execution>
254241
<id>sign-artifacts</id>
@@ -283,7 +270,7 @@
283270
<plugin>
284271
<groupId>org.sonatype.plugins</groupId>
285272
<artifactId>nexus-staging-maven-plugin</artifactId>
286-
<version>1.6.8</version>
273+
<version>1.6.13</version>
287274
<extensions>true</extensions>
288275
<configuration>
289276
<serverId>ossrh</serverId>
@@ -309,7 +296,7 @@
309296
<plugin>
310297
<groupId>org.apache.maven.plugins</groupId>
311298
<artifactId>maven-deploy-plugin</artifactId>
312-
<version>3.1.0</version>
299+
<version>3.1.1</version>
313300
</plugin>
314301
</plugins>
315302
</build>

src/main/java/module-info.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99
module org.cryptomator.integrations.linux {
1010
requires org.cryptomator.integrations.api;
1111
requires org.slf4j;
12-
requires com.google.common;
13-
requires org.apache.commons.lang3;
1412
requires org.freedesktop.dbus;
1513
requires org.purejava.appindicator;
1614
requires org.purejava.kwallet;
17-
requires secret.service;
15+
requires de.swiesend.secretservice;
1816

1917
provides KeychainAccessProvider with SecretServiceKeychainAccess, KDEWalletKeychainAccess;
2018
provides RevealPathService with DBusSendRevealPathService;

src/main/java/org/cryptomator/linux/keychain/KDEWalletKeychainAccess.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package org.cryptomator.linux.keychain;
22

3-
import com.google.common.base.Preconditions;
43
import org.cryptomator.integrations.common.OperatingSystem;
54
import org.cryptomator.integrations.common.Priority;
65
import org.cryptomator.integrations.keychain.KeychainAccessException;
76
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
7+
import org.cryptomator.linux.util.CheckUtil;
88
import org.freedesktop.dbus.connections.impl.DBusConnection;
99
import org.freedesktop.dbus.connections.impl.DBusConnectionBuilder;
1010
import org.freedesktop.dbus.exceptions.DBusConnectionException;
@@ -49,25 +49,25 @@ public boolean isLocked() {
4949

5050
@Override
5151
public void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
52-
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");
52+
CheckUtil.checkState(wallet.isPresent(), "Keychain not supported.");
5353
wallet.get().storePassphrase(key, passphrase);
5454
}
5555

5656
@Override
5757
public char[] loadPassphrase(String key) throws KeychainAccessException {
58-
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");
58+
CheckUtil.checkState(wallet.isPresent(), "Keychain not supported.");
5959
return wallet.get().loadPassphrase(key);
6060
}
6161

6262
@Override
6363
public void deletePassphrase(String key) throws KeychainAccessException {
64-
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");
64+
CheckUtil.checkState(wallet.isPresent(), "Keychain not supported.");
6565
wallet.get().deletePassphrase(key);
6666
}
6767

6868
@Override
6969
public void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
70-
Preconditions.checkState(wallet.isPresent(), "Keychain not supported.");
70+
CheckUtil.checkState(wallet.isPresent(), "Keychain not supported.");
7171
wallet.get().changePassphrase(key, passphrase);
7272
}
7373

@@ -95,11 +95,7 @@ private static DBusConnection getNewConnection() throws DBusException {
9595
} catch (DBusConnectionException | DBusExecutionException de) {
9696
LOG.warn("Connecting to SESSION bus failed.", de);
9797
LOG.warn("Falling back to SYSTEM DBus");
98-
try {
99-
return DBusConnectionBuilder.forSystemBus().build();
100-
} catch (DBusException e) {
101-
throw e;
102-
}
98+
return DBusConnectionBuilder.forSystemBus().build();
10399
}
104100
}
105101

@@ -144,7 +140,7 @@ public char[] loadPassphrase(String key) throws KeychainAccessException {
144140
} else {
145141
LOG.debug("loadPassphrase: wallet is closed.");
146142
}
147-
return (password.equals("")) ? null : password.toCharArray();
143+
return (password.isEmpty()) ? null : password.toCharArray();
148144
} catch (RuntimeException e) {
149145
throw new KeychainAccessException("Loading the passphrase failed.", e);
150146
}

src/main/java/org/cryptomator/linux/keychain/SecretServiceKeychainAccess.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package org.cryptomator.linux.keychain;
22

3+
import de.swiesend.secretservice.simple.SimpleCollection;
34
import org.cryptomator.integrations.common.OperatingSystem;
45
import org.cryptomator.integrations.common.Priority;
56
import org.cryptomator.integrations.keychain.KeychainAccessException;
67
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
7-
import org.freedesktop.dbus.exceptions.DBusConnectionException;
88
import org.freedesktop.dbus.exceptions.DBusExecutionException;
9-
import org.freedesktop.secret.simple.SimpleCollection;
109

1110
import java.io.IOException;
1211
import java.util.List;

0 commit comments

Comments
 (0)