Skip to content

Commit

Permalink
fix: add missing repositories for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Aug 3, 2024
1 parent db8e116 commit 9a9aad6
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions modules/openid-federation-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@ plugins {

val ktorVersion = "2.3.11"

repositories {
mavenCentral()
google()
}

kotlin {
@OptIn(ExperimentalWasmDsl::class)
jvm()

// wasmJs is not available yet for ktor until v3.x is released which is still in alpha
// @OptIn(ExperimentalWasmDsl::class)
js {
browser {
commonWebpackConfig {
Expand All @@ -29,33 +36,30 @@ kotlin {
}
}

// wasmJs is not available yet for ktor until v3.x is released which is still in alpha
// TODO Should be placed back at a later point in time: https://sphereon.atlassian.net/browse/OIDF-50
// androidTarget {
// @OptIn(ExperimentalKotlinGradlePluginApi::class)
// compilerOptions {
// jvmTarget.set(JvmTarget.JVM_11)
// }
// }

// TODO Should be placed back at a later point in time: https://sphereon.atlassian.net/browse/OIDF-50
// androidTarget {
// @OptIn(ExperimentalKotlinGradlePluginApi::class)
// compilerOptions {
// jvmTarget.set(JvmTarget.JVM_11)
// }
// }
//
// iosX64()
// iosArm64()
// iosSimulatorArm64()

jvm()
// iosX64()
// iosArm64()
// iosSimulatorArm64()
// androidTarget()

sourceSets {
val commonMain by getting {
dependencies {
implementation("com.sphereon.oid.fed:openapi:0.1.0-SNAPSHOT")
api(projects.modules.openapi)
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-logging:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-auth:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.1")
implementation(libs.kermit.logging)
}
}
Expand All @@ -64,6 +68,7 @@ kotlin {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("io.ktor:ktor-client-mock:$ktorVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0-RC")
}
}
val jvmMain by getting {
Expand Down Expand Up @@ -138,11 +143,9 @@ kotlin {
}

val jsTest by getting {
dependsOn(commonTest)
dependencies {
implementation(kotlin("test-js"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0-RC")
}
}
}
Expand Down

0 comments on commit 9a9aad6

Please sign in to comment.