rename token key
This commit is contained in:
parent
71c7df921a
commit
4fd428109a
1 changed files with 7 additions and 7 deletions
14
build.gradle
14
build.gradle
|
@ -18,7 +18,7 @@ apply plugin: "maven-publish"
|
||||||
|
|
||||||
|
|
||||||
group = "org.domaindrivenarchitecture.provs"
|
group = "org.domaindrivenarchitecture.provs"
|
||||||
version = "0.22.4-SNAPSHOT"
|
version = "0.22.5-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -196,16 +196,16 @@ publishing {
|
||||||
credentials(HttpHeaderCredentials) {
|
credentials(HttpHeaderCredentials) {
|
||||||
name = "Authorization"
|
name = "Authorization"
|
||||||
if (System.getenv("CI_JOB_TOKEN") != null) {
|
if (System.getenv("CI_JOB_TOKEN") != null) {
|
||||||
value = "token " + System.getenv("meissa_repo_token")
|
value = "token " + System.getenv("RELEASE_TOKEN")
|
||||||
} else {
|
} else {
|
||||||
// use project-property (define e.g. in "~/.gradle/gradle.properties") when not running in ci
|
// use project-property (define e.g. in "~/.gradle/gradle.properties") when not running in ci
|
||||||
// you can create a token in gitea "Profile and Settings ... > Settings > Applications", Token Name, Select scopes (write:package) > "Generate Token"
|
// you can create a token in gitea "Profile and Settings ... > Settings > Applications", Token Name, Select scopes (write:package) > "Generate Token"
|
||||||
if (!project.hasProperty("meissa_repo_token")) {
|
if (!project.hasProperty("RELEASE_TOKEN")) {
|
||||||
// if meissa_repo_token is missing, provide a dummy in order to avoid error "Could not get unknown property 'meissa_repo_token' for Credentials [header: Authorization]" for other gradle tasks
|
// if RELEASE_TOKEN is missing, provide a dummy in order to avoid error "Could not get unknown property 'RELEASE_TOKEN' for Credentials [header: Authorization]" for other gradle tasks
|
||||||
ext.meissa_repo_token = "meissa_repo_token not provided in file \".gradle/gradle.properties\""
|
ext.RELEASE_TOKEN = "RELEASE_TOKEN not provided in file \".gradle/gradle.properties\""
|
||||||
println "Error: meissa_repo_token not found"
|
println "Error: RELEASE_TOKEN not found"
|
||||||
}
|
}
|
||||||
value = "token $meissa_repo_token"
|
value = "token $RELEASE_TOKEN"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue