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

fixed native build #6

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies {
implementation("io.quarkus:quarkus-rest-client-jackson")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.quarkus:quarkus-rest-client")
implementation("io.quarkus:quarkus-resteasy-jackson") //required for native build
implementation("io.quarkus:quarkus-kotlin")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.quarkus:quarkus-arc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package pl.szymonprz.infrastructure
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.ObjectMapper
import io.quarkus.runtime.annotations.RegisterForReflection
import org.eclipse.microprofile.rest.client.inject.RestClient
import pl.szymonprz.domain.VideoUrl
import pl.szymonprz.domain.WistiaVideoUrlsLoader
Expand All @@ -28,5 +29,7 @@ class FastWistiaVideoUrlsLoader : WistiaVideoUrlsLoader {
}

@JsonIgnoreProperties(ignoreUnknown = true)
@RegisterForReflection
data class FastWistiaAssets(val assets: List<AssetResponse>)
@RegisterForReflection
data class AssetResponse(@JsonProperty("display_name") val displayName: String, val url: String)