54 lines
No EOL
1.3 KiB
Kotlin
54 lines
No EOL
1.3 KiB
Kotlin
import org.gradle.internal.declarativedsl.dom.mutation.valueFromString
|
|
|
|
plugins {
|
|
id("java")
|
|
id("java-library")
|
|
id("maven-publish")
|
|
}
|
|
|
|
group = "de.kentoj.scrow"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
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")
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("CoreBukkitApi") {
|
|
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 {
|
|
useJUnitPlatform()
|
|
} |