fix: Update Maven repository configuration to use GiteaPackages
This commit is contained in:
@ -47,12 +47,14 @@ kotlin {
|
|||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "GitHubPackages"
|
name = "GiteaPackages"
|
||||||
url = uri("https://maven.pkg.github.com/revanced/revanced-patches")
|
url = uri("https://git.naijun.dev/api/packages/ReVanced/maven")
|
||||||
credentials {
|
credentials(HttpHeaderCredentials::class) {
|
||||||
username = System.getenv("GITHUB_ACTOR")
|
name = "Authorization"
|
||||||
password = System.getenv("GITHUB_TOKEN")
|
value = "token ${project.findProperty("gitea.accessToken") as String? ?: System.getenv("GITEA_TOKEN")}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
authentication { create<HttpHeaderAuthentication>("header") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -12,6 +12,16 @@ pluginManagement {
|
|||||||
password = providers.gradleProperty("gpr.key").getOrElse(System.getenv("GITHUB_TOKEN"))
|
password = providers.gradleProperty("gpr.key").getOrElse(System.getenv("GITHUB_TOKEN"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
maven {
|
||||||
|
name = "GiteaPackages"
|
||||||
|
url = uri("https://git.naijun.dev/api/packages/ReVanced/maven")
|
||||||
|
credentials(HttpHeaderCredentials::class) {
|
||||||
|
name = "Authorization"
|
||||||
|
value = "token ${providers.gradleProperty("gitea.accessToken")}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication { create<HttpHeaderAuthentication>("header") }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user