16 lines
561 B
Kotlin
16 lines
561 B
Kotlin
val scrowToken = providers.gradleProperty("scrowMavenToken")
|
|
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
|
|
val scrowRepo: Action<RepositoryHandler> = Action {
|
|
maven {
|
|
name = "scrow"
|
|
url = uri("http://forge.kentoj.de/api/packages/scrow/maven")
|
|
isAllowInsecureProtocol = true
|
|
credentials(HttpHeaderCredentials::class) {
|
|
name = "Authorization"
|
|
value = "token $scrowToken"
|
|
}
|
|
authentication {
|
|
create<HttpHeaderAuthentication>("header")
|
|
}
|
|
}
|
|
}
|