mirror of
https://github.com/GayPizzaSpecifications/concrete.git
synced 2025-08-05 14:11:34 +00:00
GitLab Publishing
This commit is contained in:
@ -69,6 +69,11 @@ publishing {
|
||||
githubPackagesToken = project.findProperty("github.token") as String?
|
||||
}
|
||||
|
||||
var gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
|
||||
if (gitlabPackagesToken == null) {
|
||||
gitlabPackagesToken = project.findProperty("gitlab.com.accessToken") as String?
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete")
|
||||
@ -77,6 +82,19 @@ publishing {
|
||||
password = githubPackagesToken
|
||||
}
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "GitLab"
|
||||
url = uri("https://gitlab.com/api/v4/projects/42873094/packages/maven")
|
||||
credentials(HttpHeaderCredentials::class.java) {
|
||||
name = "Private-Token"
|
||||
value = gitlabPackagesToken
|
||||
}
|
||||
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user