going to make new module
This commit is contained in:
parent
bdbd079a14
commit
e85228e717
12 changed files with 16 additions and 30 deletions
|
|
@ -11,6 +11,7 @@ version = "1.0-SNAPSHOT"
|
|||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
scrowRepo()
|
||||
}
|
||||
|
||||
subprojects {
|
||||
|
|
@ -31,18 +32,7 @@ subprojects {
|
|||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
||||
name = "spigotmc-repo"
|
||||
}
|
||||
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")
|
||||
}
|
||||
}
|
||||
scrowRepo()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
@ -60,4 +50,17 @@ subprojects {
|
|||
implementation(platform("org.mongodb:mongodb-driver-bom:5.6.1"))
|
||||
implementation("org.mongodb:mongodb-driver-reactivestreams")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun RepositoryHandler.scrowRepo() = this.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")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue