group 'eu.mivrenik' version '1.0' repositories { mavenCentral() } def creds = new Properties() def credsFile = file("credentials.properties") if (credsFile.exists()) credsFile.withInputStream { creds.load(it) } allprojects { apply plugin: 'java' apply plugin: 'maven-publish' sourceCompatibility = 1.7 publishing { repositories { maven { name = "funqx-gitea" url = uri("https://git.funqx.org/api/packages/World2Join/maven") credentials(HttpHeaderCredentials) { name = "Authorization" value = "token ${creds.getProperty("gitea.token")}" } authentication { header(HttpHeaderAuthentication) } } } } } subprojects { publishing { publications { maven(MavenPublication) { from components.java } } } }