group = "com.willfp" version = rootProject.version dependencies { compileOnly("io.papermc.paper:paper-api:1.19.3-R0.1-SNAPSHOT") compileOnly("com.github.ben-manes.caffeine:caffeine:3.0.5") implementation("com.willfp:ecomponent:1.3.0") } publishing { publications { register("maven") { groupId = project.group.toString() version = project.version.toString() artifactId = rootProject.name artifact(rootProject.tasks.shadowJar.get().archiveFile) } } publishing { repositories { maven { name = "auxilor" url = uri("https://repo.auxilor.io/repository/maven-releases/") credentials { username = System.getenv("MAVEN_USERNAME") password = System.getenv("MAVEN_PASSWORD") } } } } } tasks { build { dependsOn(publishToMavenLocal) } }