plugins { id 'java' id 'maven-publish' } group = 'de.tudbut' version = '1.0-SNAPSHOT' publishing { publications { mavenJava(MavenPublication) { groupId = "de.tudbut" version = System.getenv("VERSION") from components.java } } repositories { maven { name = "Forgejo" url = uri("https://git.tudbut.de/api/packages/TudbuT/maven") credentials(HttpHeaderCredentials) { name = "Authorization" value = "token " + System.getenv("PUBLISH_TOKEN") } authentication { header(HttpHeaderAuthentication) } } } }