plugins { id("java-library") id("maven-publish") } dependencies { compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT") } tasks { publishing { repositories { maven { name = "fancypluginsReleases" url = uri("https://repo.fancyplugins.de/releases") credentials(PasswordCredentials::class) authentication { isAllowInsecureProtocol = true create("basic") } } maven { name = "fancypluginsSnapshots" url = uri("https://repo.fancyplugins.de/snapshots") credentials(PasswordCredentials::class) authentication { isAllowInsecureProtocol = true create("basic") } } } publications { create("maven") { groupId = "de.oliver" artifactId = "FancyVisuals" version = findProperty("fancyvisualsVersion") as String from(project.components["java"]) } } } java { withSourcesJar() withJavadocJar() } javadoc { options.encoding = Charsets.UTF_8.name() } compileJava { options.encoding = Charsets.UTF_8.name() options.release = 21 } }