-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
import at.asitplus.gradle.* | ||
|
||
plugins { | ||
kotlin("multiplatform") | ||
kotlin("plugin.serialization") | ||
id("at.asitplus.gradle.vclib-conventions") | ||
id("org.jetbrains.dokka") | ||
id("signing") | ||
} | ||
|
||
/* required for maven publication */ | ||
val artifactVersion: String by extra | ||
group = "at.asitplus.wallet" | ||
version = artifactVersion | ||
|
||
|
||
kotlin { | ||
|
||
jvm() | ||
iosArm64() | ||
iosSimulatorArm64() | ||
iosX64() | ||
sourceSets { | ||
|
||
commonMain { | ||
dependencies { | ||
implementation(project.napier()) | ||
api("com.benasher44:uuid:${VcLibVersions.uuid}") | ||
api(serialization("json")) | ||
api(serialization("cbor")) | ||
api(datetime()) | ||
api("com.ionspin.kotlin:bignum:${signumVersionCatalog.findVersion("bignum").get()}") | ||
api(kmmresult()) | ||
api("at.asitplus.signum:indispensable:${VcLibVersions.signum}") | ||
api("at.asitplus.signum:indispensable-cosef:${VcLibVersions.signum}") | ||
api("at.asitplus.signum:indispensable-josef:${VcLibVersions.signum}") | ||
api("at.asitplus:jsonpath4k:${VcLibVersions.jsonpath}") | ||
api("io.matthewnelson.encoding:core:${AspVersions.versions["encoding"]}") | ||
api("io.matthewnelson.encoding:base16:${AspVersions.versions["encoding"]}") | ||
api("io.matthewnelson.encoding:base64:${AspVersions.versions["encoding"]}") | ||
} | ||
} | ||
|
||
commonTest { | ||
dependencies { | ||
} | ||
} | ||
|
||
jvmMain { | ||
dependencies { | ||
} | ||
} | ||
|
||
jvmTest { | ||
dependencies { | ||
} | ||
} | ||
} | ||
} | ||
|
||
exportIosFramework( | ||
"RqesDataClasses", | ||
static = false, | ||
*commonIosExports(), | ||
) | ||
|
||
val javadocJar = setupDokka( | ||
baseUrl = "https://github.com/a-sit-plus/vck/tree/main/", | ||
multiModuleDoc = true | ||
) | ||
|
||
publishing { | ||
publications { | ||
withType<MavenPublication> { | ||
if (this.name != "relocation") artifact(javadocJar) | ||
pom { | ||
name.set("RQES Data Classes") | ||
description.set("Kotlin Multiplatform data classes for RQES") | ||
url.set("https://github.com/a-sit-plus/vck") | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("JesusMcCloud") | ||
name.set("Bernd Prünster") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("nodh") | ||
name.set("Christian Kollmann") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:[email protected]:a-sit-plus/vck.git") | ||
developerConnection.set("scm:git:[email protected]:a-sit-plus/vck.git") | ||
url.set("https://github.com/a-sit-plus/vck") | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
mavenLocal { | ||
signing.isRequired = false | ||
} | ||
maven { | ||
url = uri(layout.projectDirectory.dir("..").dir("repo")) | ||
name = "local" | ||
signing.isRequired = false | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven(url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) | ||
mavenCentral() | ||
} | ||
|
||
signing { | ||
val signingKeyId: String? by project | ||
val signingKey: String? by project | ||
val signingPassword: String? by project | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign(publishing.publications) | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
...qes/Base64URLTransactionDataSerializer.kt → ...qes/Base64URLTransactionDataSerializer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...llet/lib/data/rqes/DocumentDigestEntry.kt → ...n/at.asitplus.rqes/DocumentDigestEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...let/lib/data/rqes/TransactionDataEntry.kt → .../at.asitplus.rqes/TransactionDataEntry.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters