Skip to content

Commit 5902e29

Browse files
committed
Dependency updates
1 parent 2c9c3c8 commit 5902e29

File tree

12 files changed

+43
-36
lines changed

12 files changed

+43
-36
lines changed

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ javadoc {
6767
evaluationDependsOn(':config')
6868

6969
configurations {
70-
library.extendsFrom(implementation)
70+
library {
71+
extendsFrom(implementation)
72+
73+
// We do not need audio stuff
74+
exclude module: 'tink'
75+
exclude module: 'opus-java'
76+
}
7177
module
7278
runtimeClasspath.extendsFrom(module, library)
7379
}
@@ -81,6 +87,7 @@ dependencies {
8187
api libs.jda
8288
implementation libs.trove4j
8389

90+
implementation libs.caffeine
8491
implementation libs.guava
8592
implementation libs.logback
8693

config-api/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(21)
77
dependencies {
88
api(libs.jda)
99
api(libs.bundles.database)
10+
implementation(libs.caffeine)
1011
implementation(libs.json)
1112
compileOnly(libs.annotations)
1213
}

gradle/libs.versions.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
graal = "25.0.2"
33
groovy = "4.0.30"
44
jdbi = "3.32.0"
5-
jackson = "2.20.0"
6-
jjwt = "0.10.5"
5+
jackson = "2.21.0"
6+
jjwt = "0.13.0"
77
junit = "5.10.0"
88

99
[libraries]
1010

11-
angusmail = { module = "org.eclipse.angus:angus-mail", version = "2.0.1" }
11+
angusmail = { module = "org.eclipse.angus:angus-mail", version = "2.0.5" }
1212
annotations = { module = "org.jetbrains:annotations", version = "24.0.1" }
13-
args4j = { module = "args4j:args4j", version = "2.33" }
13+
args4j = { module = "args4j:args4j", version = "2.37" }
1414
assertj = { module = "org.assertj:assertj-core", version = "3.25.1" }
15-
autoservice = { module = "com.google.auto.service:auto-service", version = "1.0.1" }
1615
authlib = { module = "com.mojang:authlib", version = "7.0.61" }
1716

18-
bcpkix = { module = "org.bouncycastle:bcpkix-jdk15on", version = "1.58" }
17+
bcpkix = { module = "org.bouncycastle:bcpkix-jdk18on", version = "1.83" }
1918

19+
caffeine = { module = "com.github.ben-manes.caffeine:caffeine", version = "3.2.3" }
2020
# TODO - switch back to the normal maven one once https://github.com/Chew/JDA-Chewtils/pull/93 is merged
2121
chewtils = { module = "com.github.Chew:JDA-Chewtils", version = "39a83bd8" }
2222

23-
fastutil = { module = "it.unimi.dsi:fastutil", version = "8.5.12" }
24-
flyway = { module = "org.flywaydb:flyway-core", version = "8.5.13" }
23+
fastutil = { module = "it.unimi.dsi:fastutil", version = "8.5.18" }
24+
flyway = { module = "org.flywaydb:flyway-core", version = "12.0.0" }
2525

2626
githubapi = { module = "org.kohsuke:github-api", version = "1.330" }
2727
graal-js = { module = "org.graalvm.js:js", version.ref = "graal" }
@@ -30,23 +30,23 @@ graal-js-scriptengine = { module = "org.graalvm.js:js-scriptengine", version.ref
3030
groovy = { module = "org.apache.groovy:groovy", version.ref = "groovy" }
3131
groovy-contracts = { module = "org.apache.groovy:groovy-contracts", version.ref = "groovy" }
3232

33-
guava = { module = "com.google.guava:guava", version = "30.1.1-jre" }
33+
guava = { module = "com.google.guava:guava", version = "33.5.0-jre" }
3434

35-
jda = { module = "net.dv8tion:JDA", version = "6.0.0" }
35+
jda = { module = "net.dv8tion:JDA", version = "6.3.0" }
3636

3737
jdbi-core = { module = "org.jdbi:jdbi3-core", version.ref = "jdbi" }
3838
jdbi-sqlobject = { module = "org.jdbi:jdbi3-sqlobject", version.ref = "jdbi" }
3939

4040
j2html = { module = "com.j2html:j2html", version = "1.6.0" }
4141

4242
jackson-yaml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml", version.ref = "jackson" }
43-
javalin = { module = "io.javalin:javalin", version = "6.3.0" }
43+
javalin = { module = "io.javalin:javalin", version = "6.7.0" }
4444

4545
jjwt-api = { module = "io.jsonwebtoken:jjwt-api", version.ref = "jjwt" }
4646
jjwt-impl = { module = "io.jsonwebtoken:jjwt-impl", version.ref = "jjwt" }
4747
jjwt-jackson = { module = "io.jsonwebtoken:jjwt-jackson", version.ref = "jjwt" }
4848

49-
json = { module = "org.json:json", version = "20231013" }
49+
json = { module = "org.json:json", version = "20251224" }
5050
junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" }
5151
junit-api = { module = "org.junit.jupiter:junit-jupiter-api" }
5252
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
@@ -56,10 +56,10 @@ logback = { module = "ch.qos.logback:logback-classic", version = "1.5.6" }
5656

5757
mavenartifact = { module = "org.apache.maven:maven-artifact", version = "3.9.1" }
5858

59-
re2j = { module = "com.google.re2j:re2j", version = "1.7" }
59+
re2j = { module = "com.google.re2j:re2j", version = "1.8" }
6060

6161
semver = { module = "com.matyrobbrt:semver-graaljs", version = "1.1.0" }
62-
sqlitejdbc = { module = "org.xerial:sqlite-jdbc", version = "3.40.0.0" }
62+
sqlitejdbc = { module = "org.xerial:sqlite-jdbc", version = "3.51.1.0" }
6363

6464
trove4j = { module = "net.sf.trove4j:trove4j", version = "3.0.3" }
6565

modules/logging/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ camelotModule {
77
}
88

99
dependencies {
10+
library(libs.caffeine)
1011
library(libs.fastutil)
1112
}

modules/reminders/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ camelotModule {
77
}
88

99
dependencies {
10-
library(libs.bundles.database)
1110
library(libs.guava)
11+
library(libs.caffeine)
12+
library(libs.bundles.database)
1213
}

src/main/java/net/neoforged/camelot/commands/moderation/ModerationCommand.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
import net.neoforged.camelot.api.config.DateUtils;
2626
import net.neoforged.camelot.util.ModerationUtil;
2727
import net.neoforged.camelot.util.Utils;
28+
import org.jetbrains.annotations.Nullable;
2829

29-
import javax.annotation.ParametersAreNullableByDefault;
3030
import java.time.Duration;
3131
import java.time.Instant;
3232

@@ -98,8 +98,7 @@ protected final void execute(SlashCommandEvent event) {
9898
* @param moderator the moderator
9999
* @return if the target can be moderated, or {@code false} if the target and the moderators are the same user.
100100
*/
101-
@ParametersAreNullableByDefault
102-
protected final boolean canModerate(Member target, Member moderator) {
101+
protected final boolean canModerate(@Nullable Member target, @Nullable Member moderator) {
103102
Preconditions.checkArgument(target != null, "Unknown user!");
104103
Preconditions.checkArgument(moderator != null, "Can only run command in guild!");
105104
Preconditions.checkArgument(target.getIdLong() != moderator.getIdLong(), "Cannot moderate yourself!");

src/main/java/net/neoforged/camelot/script/fs/ScriptPath.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package net.neoforged.camelot.script.fs;
22

3-
import javax.annotation.ParametersAreNonnullByDefault;
43
import java.io.IOException;
54
import java.net.URI;
65
import java.net.URISyntaxException;
@@ -19,7 +18,6 @@
1918
import java.util.function.IntBinaryOperator;
2019
import java.util.stream.IntStream;
2120

22-
@ParametersAreNonnullByDefault
2321
public record ScriptPath(ScriptFileSystem fileSystem, boolean absolute, String[] pathParts,
2422
Function<ScriptPath, ScriptPath> normalized /* lazily-compute the normalized path */) implements Path {
2523

src/main/java/net/neoforged/camelot/services/ModerationRecorderService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package net.neoforged.camelot.services;
22

33
import net.dv8tion.jda.api.entities.Guild;
4+
import org.jetbrains.annotations.Nullable;
45

5-
import javax.annotation.Nullable;
66
import java.time.Duration;
77
import java.util.UUID;
88

src/main/java/net/neoforged/camelot/util/ModerationUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import net.neoforged.camelot.Bot;
88
import net.neoforged.camelot.db.transactionals.PendingUnbansDAO;
99
import net.neoforged.camelot.services.ModerationRecorderService;
10+
import org.jetbrains.annotations.Nullable;
1011

11-
import javax.annotation.Nullable;
1212
import java.sql.Timestamp;
1313
import java.time.Duration;
1414
import java.time.Instant;

src/main/java/net/neoforged/camelot/util/jda/AppEmojiManager.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import org.codehaus.plexus.util.FileUtils;
1616
import org.jetbrains.annotations.NotNull;
1717
import org.jetbrains.annotations.Nullable;
18+
import org.jspecify.annotations.NonNull;
1819

19-
import javax.annotation.Nonnull;
2020
import java.io.IOException;
2121
import java.io.UncheckedIOException;
2222
import java.time.OffsetDateTime;
@@ -143,7 +143,7 @@ private static class DelegatedEmoji implements CustomEmoji, EmojiUnion {
143143
protected CustomEmoji emoji;
144144

145145
@Override
146-
@Nonnull
146+
@NonNull
147147
public Type getType() {
148148
return emoji.getType();
149149
}
@@ -154,25 +154,25 @@ public boolean isAnimated() {
154154
}
155155

156156
@Override
157-
@Nonnull
157+
@NonNull
158158
public String getImageUrl() {
159159
return emoji.getImageUrl();
160160
}
161161

162162
@Override
163-
@Nonnull
163+
@NonNull
164164
public ImageProxy getImage() {
165165
return emoji.getImage();
166166
}
167167

168168
@Override
169-
@Nonnull
169+
@NonNull
170170
public String getAsMention() {
171171
return emoji.getAsMention();
172172
}
173173

174174
@Override
175-
@Nonnull
175+
@NonNull
176176
public String getFormatted() {
177177
return emoji.getFormatted();
178178
}
@@ -183,25 +183,25 @@ public void formatTo(Formatter formatter, int flags, int width, int precision) {
183183
}
184184

185185
@Override
186-
@Nonnull
186+
@NonNull
187187
public String getName() {
188188
return emoji.getName();
189189
}
190190

191191
@Override
192-
@Nonnull
192+
@NonNull
193193
public String getAsReactionCode() {
194194
return emoji.getAsReactionCode();
195195
}
196196

197197
@Override
198-
@Nonnull
198+
@NonNull
199199
public DataObject toData() {
200200
return emoji.toData();
201201
}
202202

203203
@Override
204-
@Nonnull
204+
@NonNull
205205
public String getId() {
206206
return emoji.getId();
207207
}
@@ -212,7 +212,7 @@ public long getIdLong() {
212212
}
213213

214214
@Override
215-
@Nonnull
215+
@NonNull
216216
public OffsetDateTime getTimeCreated() {
217217
return emoji.getTimeCreated();
218218
}

0 commit comments

Comments
 (0)