From ac72f8d596a587cbab87de9d1e739f5bebcca334 Mon Sep 17 00:00:00 2001 From: JFronny <33260128+jfronny@users.noreply.github.com> Date: Sun, 11 Apr 2021 16:13:47 +0200 Subject: [PATCH] Update publish job --- build.gradle | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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