This commit is contained in:
kento2 2026-04-15 21:45:19 +02:00
parent 179f94085f
commit 3345595146
52 changed files with 95 additions and 905 deletions

View file

@ -1,4 +1,5 @@
import org.gradle.internal.declarativedsl.dom.mutation.valueFromString
val scrowToken = providers.gradleProperty("scrowMavenToken")
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN"))
plugins {
id("java")
@ -11,6 +12,20 @@ version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
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")
}
}
}
dependencies {
@ -20,33 +35,19 @@ dependencies {
api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
api("net.kyori:adventure-platform-bukkit:4.4.1")
api("de.kentoj:kencommandapi-core:1.0.0")
}
publishing {
publications {
create<MavenPublication>("CoreBukkitApi") {
create<MavenPublication>("ScrowBukkitApi") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
from(components["java"])
}
}
repositories {
maven {
name = "scrow"
url = uri("http://forge.kentoj.de/api/packages/scrow/maven")
isAllowInsecureProtocol = true
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "token a967694822eed6e97b1b20e8737733ef1400fa1f"
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}
tasks.test {