Skip to content

Commit 170ab00

Browse files
authored
Merge pull request #511 from danthe1st/deps
update dependencies
2 parents 24700ec + 52fa964 commit 170ab00

File tree

2 files changed

+23
-21
lines changed

2 files changed

+23
-21
lines changed

build.gradle.kts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import com.github.jengelman.gradle.plugins.shadow.transformers.*
33

44
plugins {
55
java
6-
id("com.github.johnrengelman.shadow") version "7.1.2"
7-
id("org.springframework.boot") version "3.3.5"
8-
id("io.spring.dependency-management") version "1.1.6"
9-
id("org.graalvm.buildtools.native") version "0.10.3"
6+
id("com.github.johnrengelman.shadow") version "8.1.1"
7+
id("org.springframework.boot") version "3.4.3"
8+
id("io.spring.dependency-management") version "1.1.7"
9+
id("org.graalvm.buildtools.native") version "0.10.5"
1010
checkstyle
1111
}
1212

@@ -25,42 +25,42 @@ repositories {
2525
}
2626

2727
dependencies {
28-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
29-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
28+
testImplementation("org.junit.jupiter:junit-jupiter-api")
29+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
3030
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
31-
compileOnly("org.jetbrains:annotations:23.0.0")
31+
compileOnly("org.jetbrains:annotations:26.0.2")
3232

3333
// DIH4JDA (Command Framework) & JDA
3434
implementation("com.github.DynxstyGIT:DIH4JDA:120a15ad2e")
35-
implementation("net.dv8tion:JDA:5.1.2") {
35+
implementation("net.dv8tion:JDA:5.3.0") {
3636
exclude(module = "opus-java")
3737
}
3838

3939
// Caffeine (Caching Library)
40-
implementation("com.github.ben-manes.caffeine:caffeine:3.1.1")
40+
implementation("com.github.ben-manes.caffeine:caffeine:3.2.0")
4141

42-
implementation("com.google.code.gson:gson:2.9.0")
43-
implementation("org.yaml:snakeyaml:1.30")
44-
implementation("com.google.re2j:re2j:1.6")
45-
implementation("commons-validator:commons-validator:1.7")
42+
implementation("com.google.code.gson:gson:2.12.0")
43+
implementation("org.yaml:snakeyaml:2.4")
44+
implementation("com.google.re2j:re2j:1.8")
45+
implementation("commons-validator:commons-validator:1.9.0")
4646

4747
implementation("com.mashape.unirest:unirest-java:1.4.9")
4848

4949
// H2 Database
50-
implementation("com.h2database:h2:2.1.212")
51-
implementation("com.zaxxer:HikariCP:5.0.1")
50+
implementation("com.h2database:h2:2.3.232")
51+
implementation("com.zaxxer:HikariCP")
5252

5353
// Webhooks
5454
implementation("com.github.DynxstyGIT:discord-webhooks:74301a46a0")
5555

5656
// Lombok Annotations
57-
compileOnly("org.projectlombok:lombok:1.18.30")
58-
annotationProcessor("org.projectlombok:lombok:1.18.30")
57+
compileOnly("org.projectlombok:lombok:1.18.36")
58+
annotationProcessor("org.projectlombok:lombok:1.18.36")
5959
testCompileOnly("org.projectlombok:lombok:1.18.30")
6060
testAnnotationProcessor("org.projectlombok:lombok:1.18.30")
6161

6262
// Sentry
63-
implementation("io.sentry:sentry:6.3.0")
63+
implementation("io.sentry:sentry:8.3.0")
6464

6565
// Spring
6666
implementation("org.springframework.boot:spring-boot-starter-web")

src/main/java/net/discordjug/javabot/RuntimeHintsConfiguration.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@
5050
//ensure JDA can create necessary caches
5151
User[].class, Guild[].class, Member[].class, Role[].class, Channel[].class, AudioManager[].class, ScheduledEvent[].class, ThreadMember[].class, ForumTag[].class, RichCustomEmoji[].class, GuildSticker[].class, MemberPresenceImpl[].class,
5252
//needs to be serialized for channel managers etc
53-
PermOverrideData.class,
54-
//ensure that webhook embed authors can be serialized
55-
WebhookEmbed.EmbedAuthor.class, WebhookEmbed.EmbedField.class, WebhookEmbed.EmbedFooter.class, WebhookEmbed.EmbedTitle.class
53+
PermOverrideData.class
5654
})
5755
public class RuntimeHintsConfiguration implements RuntimeHintsRegistrar {
5856

@@ -74,5 +72,9 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
7472

7573
// caffeine
7674
hints.reflection().registerTypeIfPresent(getClass().getClassLoader(), "com.github.benmanes.caffeine.cache.SSW", MemberCategory.INVOKE_DECLARED_METHODS, MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
75+
76+
for (Class<?> cl : WebhookEmbed.class.getClasses()) {
77+
hints.reflection().registerType(cl, MemberCategory.DECLARED_FIELDS, MemberCategory.INVOKE_PUBLIC_METHODS);
78+
}
7779
}
7880
}

0 commit comments

Comments
 (0)