plugins { id 'java' id 'maven-publish' } group = 'de.catmangames.jsonfetcher' version = '1.0' java { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } repositories { mavenCentral() } dependencies { implementation 'com.google.code.gson:gson:2.10.1' } publishing { publications { maven(MavenPublication) { from components.java } } repositories { maven { name = 'gitea' url = 'https://git.catlet.info/api/packages/StateMc/maven' credentials(HttpHeaderCredentials) { name = 'Authorization' value = 'Basic ' + Base64.encoder.encodeToString( "${findProperty('giteaUser')}:${findProperty('giteaToken')}".bytes ) } authentication { header(HttpHeaderAuthentication) } } } }