Migrate from Jackson to Gson for JSON handling and update build configuration for token-based authentication.
This commit is contained in:
+10
-5
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user