Skip to content

Commit

Permalink
depend on published forked cbor
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Aug 18, 2023
1 parent a1122f1 commit a7ad101
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 47 deletions.
11 changes: 0 additions & 11 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,3 @@ rootProject.name = "vclibrary"
include(":vclib")
include(":vclib-aries")
include(":vclib-openid")
/*
includeBuild("kotlinx.serialization") {
dependencySubstitution {
listOf("", "-jvm", "-iosx64", "-iosarm64", "-iossimulatorarm64").forEach { target ->
listOf("core", "json", "cbor", "properties").forEach { format ->
substitute(module("org.jetbrains.kotlinx:kotlinx-serialization-$format$target"))
.using(project(":kotlinx-serialization-$format"))
}
}
}
}*/
5 changes: 0 additions & 5 deletions vclib-aries/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ kotlin {
}
}

repositories {
maven(uri(rootProject.layout.projectDirectory.dir("kotlinx.serialization").dir("repo")))
mavenCentral()
}

val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

publishing {
Expand Down
5 changes: 0 additions & 5 deletions vclib-openid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ kotlin {
}
}

repositories {
maven(uri(rootProject.layout.projectDirectory.dir("kotlinx.serialization").dir("repo")))
mavenCentral()
}

val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

publishing {
Expand Down
25 changes: 1 addition & 24 deletions vclib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,7 @@ kotlin {
dependencies {
commonImplementationDependencies()
api(datetime())
api(serialization("cbor")) {
rootProject.layout.projectDirectory.dir("kotlinx.serialization").dir("repo").asFile.let {
if (it.exists() && it.isDirectory && it.listFiles()!!.isNotEmpty()) {
logger.info("assuming serialization maven artifact present")
} else {
exec {
workingDir = rootProject.layout.projectDirectory.dir("kotlinx.serialization").asFile
println("descending into ${workingDir.absolutePath}")
logger.lifecycle("Rebuilding serialization maven artifacts")
commandLine(
"./gradlew",
"-Pnative.deploy=true",
"publishAllPublicationsToLocalRepository"
)
}
}
}
}
api(serialization("cbor"))
api("at.asitplus:kmmresult:${VcLibVersions.resultlib}")
api("io.matthewnelson.kotlin-components:encoding-base16:${VcLibVersions.encoding}")
api("io.matthewnelson.kotlin-components:encoding-base64:${VcLibVersions.encoding}")
Expand All @@ -67,12 +50,6 @@ kotlin {
}
}

repositories {
maven(uri(rootProject.layout.projectDirectory.dir("kotlinx.serialization").dir("repo")))
mavenCentral()
}


val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ val cborSerializer by lazy {
alwaysUseByteString = true
encodeDefaults = false
writeDefiniteLengths = true
explicitNulls = true
}
}

0 comments on commit a7ad101

Please sign in to comment.