scary shit comming up

This commit is contained in:
kento2 2026-06-27 19:29:10 +02:00
parent b0d4a7d061
commit 1b9ff95d40
4 changed files with 20 additions and 31 deletions

View file

@ -1,6 +1,3 @@
val scrowToken = providers.gradleProperty("scrowMavenToken")
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
plugins {
id("java")
id("io.freefair.lombok") version "9.2.0" apply false
@ -11,7 +8,7 @@ version = "1.0.0"
repositories {
mavenCentral()
scrowRepo()
scrowRepo(this)
}
subprojects {
@ -34,7 +31,7 @@ subprojects {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "spigotmc-repo"
}
scrowRepo()
scrowRepo(this)
}
dependencies {
@ -61,16 +58,3 @@ subprojects {
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")
}
}

View file

@ -33,17 +33,6 @@ publishing {
}
}
repositories {
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(this)
}
}

16
gradle.properties.kts Normal file
View 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")
}
}
}