Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GraalVM Native Image #787

Draft
wants to merge 111 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
30ae2d8
Provide Support for GraalVM native images
DRSchlaubi Mar 19, 2023
8920cfe
Also generate reflect-config.json for other modules
DRSchlaubi Mar 19, 2023
22cd84d
[ci skip] Cleanup
DRSchlaubi Mar 19, 2023
a5e099e
Add kspProcessor to common again
DRSchlaubi Mar 19, 2023
8acc1e0
[ci skip] Remove common/test reflect-config.json
DRSchlaubi Mar 19, 2023
94a8105
FIx generation for Serializable types with uncommon names
DRSchlaubi Mar 19, 2023
9b5e1ce
Make cache data classes visible via reflection
DRSchlaubi Mar 19, 2023
5489305
Make gradlew executable
DRSchlaubi Mar 19, 2023
5ba9eb9
Initial steps for running tests
DRSchlaubi Mar 19, 2023
7dd91e0
Better name and error messages for binaryName
lukellmann Mar 20, 2023
0d7113c
Update ksp-processors/src/main/kotlin/graal/ReflectConfig.kt
DRSchlaubi Mar 20, 2023
b73a3a1
Update gradle/libs.versions.toml
DRSchlaubi Mar 20, 2023
63e1069
Improve ReflectConfig
DRSchlaubi Mar 20, 2023
ffc4d5c
Cleanup gradle files
DRSchlaubi Mar 20, 2023
08afaf1
Enable color test again
DRSchlaubi Mar 20, 2023
2e464ea
Cleanup reflect-config.json
DRSchlaubi Mar 20, 2023
f8c6e01
Remove @GraalVisible from StickerData
DRSchlaubi Mar 20, 2023
da19d34
Use new loaction for reflect-config.json
DRSchlaubi Mar 20, 2023
2f7d985
Pretty-print reflect-config.json
DRSchlaubi Mar 20, 2023
8088424
Move reflect-config.json to correct location
DRSchlaubi Mar 20, 2023
923d18f
Disable incompatible tests on Graal
DRSchlaubi Mar 20, 2023
e1660ee
Fix failing test
DRSchlaubi Mar 20, 2023
246fa0a
Add CI for GraalVM
DRSchlaubi Mar 20, 2023
e960926
Use official action
DRSchlaubi Mar 20, 2023
9399ae4
[CI skip] Remove no longer needed matrix
DRSchlaubi Mar 20, 2023
8323bcc
Fix wrong location of reflect-config.json
DRSchlaubi Mar 20, 2023
d6635a5
Bump kotlin-logging and slf4j-simple
DRSchlaubi Mar 20, 2023
133dcf9
Add missing generated files
DRSchlaubi Mar 20, 2023
b1495d3
please work
lukellmann Mar 20, 2023
39746f1
Maybe fix native tests
DRSchlaubi Mar 20, 2023
19c843b
Fix native tests
DRSchlaubi Mar 20, 2023
18cf514
Fix typo in file name
DRSchlaubi Mar 20, 2023
6b010e6
Fix wrongly configured matrix
DRSchlaubi Mar 20, 2023
965d823
Setup windows compiler toolchain
DRSchlaubi Mar 20, 2023
4b82516
Fix ci file
DRSchlaubi Mar 20, 2023
20d7c31
Trigger ci build
DRSchlaubi Mar 20, 2023
3e029f2
Use DSL instead of resource-config.json
lukellmann Mar 21, 2023
e9d0e20
Merge remote-tracking branch 'kordlib/feature/graal' into feature/graal
lukellmann Mar 21, 2023
ec0130f
More compact reflect-config.json
lukellmann Mar 21, 2023
745d108
Rename KordGraalProcessor to GraalProcessor
lukellmann Mar 21, 2023
3b57e30
Make prettyPrintIndent smaller
lukellmann Mar 21, 2023
ac8e4a6
Update GraalVisible KDoc
lukellmann Mar 21, 2023
aea9586
Update ReflectConfigEntry
lukellmann Mar 21, 2023
bcb99dc
Check if CI build passes if we skip online tests
DRSchlaubi Mar 21, 2023
b71c0b2
Run Gradle with -i
DRSchlaubi Mar 21, 2023
74dd138
Only use ubuntu for CI
DRSchlaubi Mar 21, 2023
0c49c5d
Improve logging and move entries into GraalProcessor
lukellmann Mar 21, 2023
9d6abb6
Merge remote-tracking branch 'kordlib/feature/graal' into feature/graal
lukellmann Mar 21, 2023
cf9af3d
Use only macos
DRSchlaubi Mar 21, 2023
36eb55f
Merge remote-tracking branch 'kordlib/feature/graal' into feature/graal
lukellmann Mar 21, 2023
e67685a
Use GraalVM Native Image terminology consistently
lukellmann Mar 21, 2023
92d6633
Proper KSP Dependencies
lukellmann Mar 21, 2023
d4511bd
Move companionObject to KSPUtils.kt
lukellmann Mar 21, 2023
314a71a
Deterministic order for reflect-config.json
lukellmann Mar 21, 2023
dec0101
Clean graalvm-native-image-ci.yml
lukellmann Mar 21, 2023
3f3568c
Run again on ubuntu
lukellmann Mar 21, 2023
0062325
Merge branch '0.8.x' into feature/graal
lukellmann Mar 21, 2023
0773937
Regenerate reflect-config.json files
lukellmann Mar 21, 2023
310b979
Remove import
lukellmann Mar 21, 2023
1022f52
Try to run builds sequentially
lukellmann Mar 21, 2023
10b2dcc
Also setup JDK
lukellmann Mar 21, 2023
ca80c77
Revert "Also setup JDK"
lukellmann Mar 21, 2023
ca4d99c
Exclude :voice:nativeTest
lukellmann Mar 21, 2023
0d12b94
Debug logs
lukellmann Mar 21, 2023
5470e71
Build without daemon
lukellmann Mar 21, 2023
1634c24
Explicitly specify GraalVM version and bump to Java 19
DRSchlaubi Mar 22, 2023
94e2c74
Fox test reflect-config.json
DRSchlaubi Mar 22, 2023
be5ae9e
Do not run native tests in parallel
DRSchlaubi Mar 22, 2023
586f1c3
Fix typo
DRSchlaubi Mar 22, 2023
f8df5fa
[skip ci] Use @DisabledInNativeImage instead of system property
DRSchlaubi Mar 22, 2023
21ace0d
Disable Windows for now
DRSchlaubi Mar 22, 2023
8b28408
Run matrix in parallel again and use info logging
lukellmann Mar 22, 2023
9364240
Let's switch to bleeding edge Gradle
DRSchlaubi Mar 22, 2023
9d6893b
Fix workflow file
lukellmann Mar 22, 2023
3251062
Let's switch to bleeding edge Gradle for real
DRSchlaubi Mar 22, 2023
37b2deb
Specify proper download URL
DRSchlaubi Mar 22, 2023
31870ef
TeamCity change in 'Kord' project: Versioned settings configuration u…
Mar 23, 2023
9c5c0e9
TeamCity change in 'Kord' project: runners of 'Run Native Tests on Li…
Mar 23, 2023
c84a5f1
TeamCity change in 'Kord' project: runners of 'Run Native Tests on Li…
Mar 23, 2023
b390891
Use JDK 17 Graal
DRSchlaubi Mar 23, 2023
8aa0142
Use Gradle to auto-provision GraalVm JDK 17
DRSchlaubi Mar 23, 2023
397edc3
Run Gradle with --stacktrace
DRSchlaubi Mar 23, 2023
dde30c8
Enable debug logs
DRSchlaubi Mar 23, 2023
04f73d3
Remove Graal CI
DRSchlaubi Mar 23, 2023
b3d92dd
Initial migration to TeamCity CI
DRSchlaubi Mar 23, 2023
4998050
Add mandatory ID
DRSchlaubi Mar 23, 2023
1b5cd63
TeamCity change in 'Kord' project: 'Run Native Tests on Linux' build …
Mar 23, 2023
bdb1d89
TeamCity change in 'Kord' project: 'Validation' build configuration w…
Mar 23, 2023
921b4ff
TeamCity change in 'Kord' project: VCS roots of 'Validation' build co…
Mar 23, 2023
2da76e2
Add mandatory ID
DRSchlaubi Mar 23, 2023
e4ef8b6
TeamCity change in 'Kord' project: 'https://github.com/kordlib/kord#r…
Mar 23, 2023
a70f57c
TeamCity change in 'Kord' project: 'Validation' build configuration w…
Mar 23, 2023
0918ae0
TeamCity change in 'Kord' project: commit current project settings
Mar 23, 2023
b077b16
Fix CI
DRSchlaubi Mar 23, 2023
cc0deee
Remove TeamCity patches
DRSchlaubi Mar 23, 2023
fa570a2
Fail if test count changes significantly
DRSchlaubi Mar 23, 2023
f9b2bae
Run Validation CI on pull requests as well
DRSchlaubi Mar 23, 2023
a500f50
Fix Pull request configuration
DRSchlaubi Mar 23, 2023
ae339e1
TeamCity change in 'Kord' project: Versioned settings configuration u…
Mar 23, 2023
967d52b
Merge remote-tracking branch 'origin/0.8.x' into feature/graal
DRSchlaubi Mar 23, 2023
5889bfe
Add GITHU_BRANCH environment variable
DRSchlaubi Mar 23, 2023
22d688d
Convert more CI
DRSchlaubi Mar 24, 2023
3967334
Convert Maven deployment to TeamCity
DRSchlaubi Mar 24, 2023
af3267f
Fix typo
DRSchlaubi Mar 24, 2023
5b838e5
Run live tests in TeamCity
DRSchlaubi Mar 24, 2023
1438531
Fix wrong environment variable name
DRSchlaubi Mar 24, 2023
49d0ec7
Mark environmen variable as secure
DRSchlaubi Mar 24, 2023
2ac7eaa
Fix CI secret
DRSchlaubi Mar 24, 2023
91c85d7
Stop running CI on GH-pages
DRSchlaubi Mar 25, 2023
a21bc35
Merge remote-tracking branch 'origin/0.9.x' into feature/graal
DRSchlaubi Apr 11, 2023
bc4ce7b
MPP migrations
DRSchlaubi Apr 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ out/

**/build/*
!**/build/generated/
**/build/generated/**/test
# re-exclude BuildConfigGenerated.kt
common/build/generated/source/buildConfig/main/main/dev/kord/common/BuildConfigGenerated.kt
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ repositories {

dependencies {
implementation(libs.bundles.pluginsForBuildSrc)
implementation("org.graalvm.buildtools.native:org.graalvm.buildtools.native.gradle.plugin:0.9.20")
DRSchlaubi marked this conversation as resolved.
Show resolved Hide resolved
}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/kord-internal-module.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
org.jetbrains.kotlin.jvm

DRSchlaubi marked this conversation as resolved.
Show resolved Hide resolved
}

repositories {
Expand Down
16 changes: 14 additions & 2 deletions buildSrc/src/main/kotlin/kord-module.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.google.devtools.ksp.gradle.KspTask
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URL
Expand All @@ -11,6 +10,7 @@ plugins {
org.jetbrains.kotlinx.`binary-compatibility-validator`
com.google.devtools.ksp
`maven-publish`
org.graalvm.buildtools.native
}

repositories {
Expand Down Expand Up @@ -130,6 +130,18 @@ publishing {
publications.withType<MavenPublication>().configureEach {
from(components["java"])
artifact(tasks.kotlinSourcesJar)
artifact(dokkaJar)
DRSchlaubi marked this conversation as resolved.
Show resolved Hide resolved
}
}

graalvmNative {
binaries {
named("test") {
buildArgs(
"""-H:IncludeResources=".*/.*json"""",
"""-H:IncludeResources=".*/.*png"""",
"""-H:IncludeResources=".*/.*kotlin_builtins"""",
"-H:ReflectionConfigurationFiles=${rootProject.file("graal/test-reflect-config.json").absolutePath}",
)
}
}
}

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions common/src/test/kotlin/ColorTests.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dev.kord.common.Color
import dev.kord.common.kColor
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import kotlin.test.assertEquals
Expand All @@ -24,6 +25,7 @@ class ColorTests {
assertEquals(0xFFFFFF, white.rgb)
}

@Disabled
@Test
fun `java to kColor conversion`() {
DRSchlaubi marked this conversation as resolved.
Show resolved Hide resolved
val color = java.awt.Color.decode("#DBD0B4").kColor
Expand Down
3 changes: 3 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ dependencies {
api(libs.kord.cache.api)
api(libs.kord.cache.map)

compileOnly(projects.kspAnnotations)
ksp(projects.kspProcessors)

samplesImplementation(libs.slf4j.simple)

testImplementation(libs.bundles.test.implementation)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"dev.kord.core.cache.data.ActivityData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ActivityData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandOptionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandOptionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandGroupData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandGroupData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandSubcommandData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandSubcommandData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandParameterData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandParameterData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationCommandOptionChoiceData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationCommandOptionChoiceData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.PartialApplicationData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.PartialApplicationData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.AttachmentData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.AttachmentData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.AutoModerationRuleData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.AutoModerationRuleData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.AutoModerationRuleTriggerMetadataData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.AutoModerationRuleTriggerMetadataData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.AutoModerationActionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.AutoModerationActionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.AutoModerationActionMetadataData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.AutoModerationActionMetadataData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.BanData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.BanData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ChannelData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ChannelData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ThreadMetadataData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ThreadMetadataData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ClientStatusData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ClientStatusData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ComponentData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ComponentData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ChatComponentData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ChatComponentData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.TextInputComponentData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.TextInputComponentData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedFooterData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedFooterData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedImageData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedImageData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedThumbnailData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedThumbnailData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedVideoData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedVideoData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedProviderData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedProviderData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedAuthorData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedAuthorData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmbedFieldData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmbedFieldData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.EmojiData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.EmojiData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.GuildData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.GuildData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.GuildPreviewData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.GuildPreviewData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.GuildScheduledEventData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.GuildScheduledEventData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.GuildWidgetData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.GuildWidgetData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.IntegrationData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.IntegrationData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.IntegrationsAccountData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.IntegrationsAccountData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.InteractionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.InteractionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ResolvedObjectsData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ResolvedObjectsData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ApplicationInteractionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ApplicationInteractionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.OptionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.OptionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.InviteCreateData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.InviteCreateData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.InviteData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.InviteData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.InviteWithMetadataData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.InviteWithMetadataData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.InviteDeleteData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.InviteDeleteData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.MemberData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.MemberData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.MembersChunkData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.MembersChunkData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.MessageData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.MessageData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.MessageInteractionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.MessageInteractionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.MessageReferenceData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.MessageReferenceData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.PartialGuildData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.PartialGuildData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.PermissionOverwriteData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.PermissionOverwriteData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.PresenceData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.PresenceData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ReactionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ReactionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.RemovedReactionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.RemovedReactionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ReactionRemoveEmojiData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ReactionRemoveEmojiData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.RegionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.RegionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.RoleData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.RoleData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.RoleTagsData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.RoleTagsData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.SelectOptionData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.SelectOptionData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.StageInstanceData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.StageInstanceData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.StickerData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.StickerData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.StickerItemData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.StickerItemData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.TeamData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.TeamData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.TeamMemberData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.TeamMemberData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.TemplateData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.TemplateData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.ThreadMemberData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.ThreadMemberData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.UserData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.UserData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.VoiceStateData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.VoiceStateData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.WebhookData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.WebhookData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.WelcomeScreenData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.WelcomeScreenData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.WelcomeScreenChannelData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.cache.data.WelcomeScreenChannelData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.event.automoderation.data.AutoModerationActionExecutionEventData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.event.automoderation.data.AutoModerationActionExecutionEventData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.event.channel.data.ChannelPinsUpdateEventData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.event.channel.data.ChannelPinsUpdateEventData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.event.channel.data.TypingStartEventData","fields":[{"name":"Companion"}]},{"name":"dev.kord.core.event.channel.data.TypingStartEventData$Companion","methods":[{"name":"serializer","parameterTypes":[]}]},{"name":"dev.kord.core.cache.data.GuildApplicationCommandPermissionsData"},{"name":"dev.kord.core.cache.data.StickerPackData"}]
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package dev.kord.core.cache.data

import dev.kord.cache.api.data.DataDescription
import dev.kord.cache.api.data.description
import dev.kord.common.annotation.KordPreview
import dev.kord.common.entity.DiscordGuildApplicationCommandPermissions
import dev.kord.common.entity.Snowflake
import dev.kord.ksp.GraalVisible

@GraalVisible
public data class GuildApplicationCommandPermissionsData(
val id: Snowflake,
val applicationId: Snowflake,
Expand Down
6 changes: 4 additions & 2 deletions core/src/main/kotlin/cache/data/StickerData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import dev.kord.cache.api.data.DataDescription
import dev.kord.cache.api.data.description
import dev.kord.common.entity.*
import dev.kord.common.entity.optional.*
import dev.kord.ksp.GraalVisible
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@GraalVisible
@Serializable
public data class StickerData(
DRSchlaubi marked this conversation as resolved.
Show resolved Hide resolved
val id: Snowflake,
Expand Down Expand Up @@ -49,7 +51,7 @@ public data class StickerItemData(
}
}


@GraalVisible
public data class StickerPackData(
val id: Snowflake,
val stickers: List<StickerData>,
Expand All @@ -67,4 +69,4 @@ public data class StickerPackData(
StickerPackData(id, stickers.map { StickerData.from(it) }, name, skuId, coverStickerId, description, bannerAssetId)
}
}
}
}
1 change: 1 addition & 0 deletions gateway/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies {
api(libs.bundles.ktor.client.serialization)
api(libs.ktor.client.websockets)
api(libs.ktor.client.cio)
ksp(projects.kspProcessors)

testImplementation(libs.bundles.test.implementation)
testRuntimeOnly(libs.bundles.test.runtime)
Expand Down
Loading