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 = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { // https://mvnrepository.com/artifact/org.jetbrains/annotations implementation("org.jetbrains:annotations:26.0.2-1") } publishing { publications { create("KenCommandAPI") { 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 $scrowToken" } authentication { create("header") } } } }