diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9d6c6cb..fc1301d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -135,7 +135,7 @@
-
+
diff --git a/build.gradle.kts b/build.gradle.kts
index 8da9d73..46663e7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,11 +4,27 @@ plugins {
kotlin("jvm") version "1.6.0"
}
-group = "com.philjay.jwt"
-version = "1.2.3"
-description = "JWT"
+val g = "com.philjay.jwt"
+val v = "1.2.4"
+val desc = "JWT"
+
+group = g
+version = v
+description = desc
java.sourceCompatibility = JavaVersion.VERSION_14
+publishing {
+ publications {
+ create("maven") {
+ groupId = g
+ artifactId = desc
+ version = v
+
+ from(components["java"])
+ }
+ }
+}
+
repositories {
mavenLocal()
mavenCentral()
diff --git a/src/main/java/com/philjay/jwt/JWT.kt b/src/main/java/com/philjay/jwt/JWT.kt
index 7b3b76c..b425b99 100644
--- a/src/main/java/com/philjay/jwt/JWT.kt
+++ b/src/main/java/com/philjay/jwt/JWT.kt
@@ -137,7 +137,7 @@ object JWT {
val rsaSignature = Signature.getInstance(verifyAlgorithm)
rsaSignature.initVerify(rsa)
rsaSignature.update(header)
- rsaSignature.update(tokenDelimiter.toByte())
+ rsaSignature.update(tokenDelimiter.code.toByte())
rsaSignature.update(payload)
rsaSignature.verify(tokenSignature)
} else {