Prepare for publish
This commit is contained in:
parent
286b9e3bdd
commit
6e1d5dcb0d
3 changed files with 7 additions and 2 deletions
|
|
@ -2,8 +2,13 @@ plugins {
|
||||||
kotlin("multiplatform") version "2.2.21"
|
kotlin("multiplatform") version "2.2.21"
|
||||||
id("io.kotest") version "6.0.4"
|
id("io.kotest") version "6.0.4"
|
||||||
id("com.google.devtools.ksp") version "2.3.0"
|
id("com.google.devtools.ksp") version "2.3.0"
|
||||||
|
|
||||||
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group = "eu.m724.dn42"
|
||||||
|
version = "0.0.1-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
||||||
}
|
}
|
||||||
rootProject.name = "dn42-auth"
|
rootProject.name = "auth"
|
||||||
|
|
@ -20,7 +20,7 @@ sealed interface AuthenticationMethod {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
fun fromString(value: String): AuthenticationMethod {
|
fun fromString(value: String): AuthenticationMethod {
|
||||||
val (keyType, fingerprint) = value.split(" ")
|
val (keyType, fingerprint) = value.trim().split(" ")
|
||||||
|
|
||||||
val authenticationMethod = if (keyType == "pgp-fingerprint") {
|
val authenticationMethod = if (keyType == "pgp-fingerprint") {
|
||||||
val bytes = fingerprint.hexToByteArray()
|
val bytes = fingerprint.hexToByteArray()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue