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