Migrate from Jackson to Gson for JSON handling and update build configuration for token-based authentication.

This commit is contained in:
2026-04-23 05:53:15 +02:00
parent 00b3dbda8c
commit cfab96b15e
3 changed files with 18 additions and 13 deletions
+10 -5
View File
@@ -16,7 +16,7 @@ repositories {
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.0'
implementation 'com.google.code.gson:gson:2.10.1'
}
publishing {
@@ -28,10 +28,15 @@ publishing {
repositories {
maven {
name = 'gitea'
url = 'https://git.catlet.de/api/packages/DEIN_USER/maven'
credentials {
username = findProperty('giteaUser')
password = findProperty('giteaPassword')
url = 'https://git.catlet.info/api/packages/StateMc/maven'
credentials(HttpHeaderCredentials) {
name = 'Authorization'
value = 'Basic ' + Base64.encoder.encodeToString(
"${findProperty('giteaUser')}:${findProperty('giteaToken')}".bytes
)
}
authentication {
header(HttpHeaderAuthentication)
}
}
}