Tweak auth
This commit is contained in:
parent
82edede409
commit
326fa7eba6
|
@ -22,12 +22,12 @@ publishing {
|
|||
maven(project.property("maven") as String) {
|
||||
name = "dynamic"
|
||||
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = System.getenv()["MAVEN_NAME"]
|
||||
value = System.getenv()["MAVEN_TOKEN"]
|
||||
credentials(PasswordCredentials::class) {
|
||||
username = System.getenv()["MAVEN_NAME"]
|
||||
password = System.getenv()["MAVEN_TOKEN"]
|
||||
}
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
create<BasicAuthentication>("basic")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,12 +11,12 @@ publishing {
|
|||
url = uri(project.property("maven").toString())
|
||||
name = "dynamic"
|
||||
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = System.getenv()["MAVEN_NAME"]
|
||||
value = System.getenv()["MAVEN_TOKEN"]
|
||||
credentials(PasswordCredentials::class) {
|
||||
username = System.getenv()["MAVEN_NAME"]
|
||||
password = System.getenv()["MAVEN_TOKEN"]
|
||||
}
|
||||
authentication {
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
create<BasicAuthentication>("basic")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue