57 lines
No EOL
1.4 KiB
Kotlin
57 lines
No EOL
1.4 KiB
Kotlin
val scrowToken = providers.gradleProperty("scrowMavenToken")
|
|
.orElse(providers.environmentVariable("SCROW_MAVEN_TOKEN"))
|
|
|
|
plugins {
|
|
id("java")
|
|
id("java-library")
|
|
id("maven-publish")
|
|
}
|
|
|
|
group = "de.kentoj.scrow"
|
|
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 {
|
|
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
|
|
api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
|
api("net.kyori:adventure-platform-bukkit:4.4.1")
|
|
|
|
api("de.kentoj.scrow:kencommandapi-core:0.2")
|
|
implementation("de.kentoj.scrow:kencommandapi-bukkit:0.2")
|
|
api("de.kentoj.scrow:kencommandapi-bukkit:0.2")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("ScrowBukkitApi") {
|
|
groupId = project.group.toString()
|
|
artifactId = project.name
|
|
version = project.version.toString()
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
} |