This commit is contained in:
kento2 2026-04-15 21:29:54 +02:00
parent 0078822da1
commit c1385924fb
2 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,53 @@
val scrowToken = providers.gradleProperty("scrowMavenToken")
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN")).get()
plugins {
id("java")
id("maven-publish")
id("io.freefair.lombok") version "9.2.0"
}
group = "de.kentoj"
version = "unspecified"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "spigotmc-repo"
}
}
dependencies {
// https://mvnrepository.com/artifact/org.jetbrains/annotations
implementation("org.jetbrains:annotations:26.0.2-1")
implementation(project(":kencommandapi-core"))
implementation("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
}
publishing {
publications {
create<MavenPublication>("KenCommandAPIBukkit") {
groupId = project.group.toString()
artifactId = "kencommandapi-bukkit"
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 $scrowToken"
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}

View file

@ -23,7 +23,7 @@ publishing {
publications {
create<MavenPublication>("KenCommandAPI") {
groupId = project.group.toString()
artifactId = project.name
artifactId = "kencommandapi-core"
version = project.version.toString()
from(components["java"])
}