fix publish URL

This commit is contained in:
finn 2021-11-18 19:02:58 -08:00
parent f933a8feca
commit 16bafec65a

View file

@ -1,4 +1,4 @@
From 45feb51252f1f98a6b3ec1ada840598e65622814 Mon Sep 17 00:00:00 2001
From db918ccd37635338b9ba9605493732d65e44237f Mon Sep 17 00:00:00 2001
From: finn <finn@janky.solutions>
Date: Thu, 18 Nov 2021 18:55:31 -0800
Subject: [PATCH] update gradle files
@ -6,9 +6,9 @@ Subject: [PATCH] update gradle files
---
build.gradle | 10 +---------
dependencies.gradle | 1 -
service/build.gradle | 20 +++++++++-----------
service/build.gradle | 21 ++++++++++-----------
settings.gradle | 2 +-
4 files changed, 11 insertions(+), 22 deletions(-)
4 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/build.gradle b/build.gradle
index 5a4cded..a1d8d70 100644
@ -50,7 +50,7 @@ index c1288ca..f32a970 100644
// Third Party
alias('jackson-core').to('com.fasterxml.jackson.core:jackson-databind:2.9.9.2')
diff --git a/service/build.gradle b/service/build.gradle
index 98377c1..cd7e807 100644
index 98377c1..1fadd35 100644
--- a/service/build.gradle
+++ b/service/build.gradle
@@ -23,6 +23,7 @@ compileJava {
@ -72,7 +72,7 @@ index 98377c1..cd7e807 100644
from components.java
pom {
@@ -145,16 +146,13 @@ publishing {
@@ -145,16 +146,14 @@ publishing {
repositories {
maven {
@ -80,6 +80,7 @@ index 98377c1..cd7e807 100644
- credentials {
- username getRepositoryUsername()
- password getRepositoryPassword()
+ url System.getenv("CI_API_V4_URL") + "/projects/" + System.getenv("CI_PROJECT_ID") + "/packages/maven"
+ credentials(HttpHeaderCredentials) {
+ name = 'Job-Token'
+ value = System.getenv("CI_JOB_TOKEN")