Update publish job
This commit is contained in:
parent
24a5c7b9de
commit
ac72f8d596
14
build.gradle
14
build.gradle
@ -74,7 +74,15 @@ publishing {
|
||||
|
||||
// select the repositories you want to publish to
|
||||
repositories {
|
||||
// uncomment to publish to the local maven
|
||||
// mavenLocal()
|
||||
maven {
|
||||
url "https://gitlab.example.com/api/v4/projects/25805200/packages/maven"
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = "Job-Token"
|
||||
value = System.getenv("CI_JOB_TOKEN") // the variable resides in ~/.gradle/gradle.properties
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user