diff --git a/build.gradle b/build.gradle index 7079eb4..e452bcb 100644 --- a/build.gradle +++ b/build.gradle @@ -74,7 +74,15 @@ publishing { // select the repositories you want to publish to repositories { - // uncomment to publish to the local maven - // mavenLocal() + maven { + url "https://gitlab.example.com/api/v4/projects/25805200/packages/maven" + credentials(HttpHeaderCredentials) { + name = "Job-Token" + value = System.getenv("CI_JOB_TOKEN") // the variable resides in ~/.gradle/gradle.properties + } + authentication { + header(HttpHeaderAuthentication) + } + } } -} +} \ No newline at end of file