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("me.lucko:commodore:2.2") api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT") } tasks.findByName("shadowJar")?.let { dependencies { "exclude"("dependency"("com.mojang.brigadier")!!) } } publishing { publications { create("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("header") } } } } tasks.test { useJUnitPlatform() }