plugins { id("geyser.shadow-conventions") id("com.jfrog.artifactory") id("maven-publish") } publishing { publications.create("mavenJava") { groupId = project.group as String artifactId = "Geyser-" + project.name version = project.version as String artifact(tasks["shadowJar"]) artifact(tasks["sourcesJar"]) } } artifactory { publish { repository { setRepoKey(if (isSnapshot()) "maven-snapshots" else "maven-releases") setMavenCompatible(true) } defaults { publishConfigs("archives") setPublishArtifacts(true) setPublishPom(true) setPublishIvy(false) } } }