diff --git a/build.gradle b/build.gradle index 43dc62e..83c61dc 100644 --- a/build.gradle +++ b/build.gradle @@ -57,9 +57,21 @@ allprojects { from components.java } } - repositories { - maven { - url "file://${rootProject.projectDir}/.mvnrepo" + + publishing { + repositories { + repositories { + maven { + url = uri("https://gitlab.com/api/v4/projects/60097152/packages/maven") + credentials(HttpHeaderCredentials) { + name = "Private-Token" + value = findProperty("gitLabPrivateToken").toString() // the variable resides in $GRADLE_USER_HOME/gradle.properties + } + authentication { + header(HttpHeaderAuthentication) + } + } + } } } }