scary shit comming up
This commit is contained in:
parent
b0d4a7d061
commit
1b9ff95d40
4 changed files with 20 additions and 31 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
val scrowToken = providers.gradleProperty("scrowMavenToken")
|
|
||||||
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("io.freefair.lombok") version "9.2.0" apply false
|
id("io.freefair.lombok") version "9.2.0" apply false
|
||||||
|
|
@ -11,7 +8,7 @@ version = "1.0.0"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
scrowRepo()
|
scrowRepo(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
|
|
@ -34,7 +31,7 @@ subprojects {
|
||||||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
|
||||||
name = "spigotmc-repo"
|
name = "spigotmc-repo"
|
||||||
}
|
}
|
||||||
scrowRepo()
|
scrowRepo(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
@ -61,16 +58,3 @@ subprojects {
|
||||||
implementation("io.r2dbc:r2dbc-pool:1.0.2.RELEASE")
|
implementation("io.r2dbc:r2dbc-pool:1.0.2.RELEASE")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -33,17 +33,6 @@ publishing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
scrowRepo(this)
|
||||||
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")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
16
gradle.properties.kts
Normal file
16
gradle.properties.kts
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -11,4 +11,4 @@ include("core-bukkit-api")
|
||||||
include("core-bukkit-impl")
|
include("core-bukkit-impl")
|
||||||
include("core-lib")
|
include("core-lib")
|
||||||
include("core-velocity-api")
|
include("core-velocity-api")
|
||||||
include("core-velocity-impl")
|
include("core-velocity-impl")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue