From 4bb1144eac12f2d058a582026616be5d9fa15e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Sun, 21 Feb 2021 14:38:16 +0100 Subject: [PATCH] Try adding some publish task. --- .gitlab-ci.yml | 10 ++++++++++ build.gradle.kts | 10 ++++++++++ gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5c2e31e..9d22d42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,3 +16,13 @@ build: paths: - build - .gradle + +artifact: + stage: deploy + script: gradle publish + cache: + key: "$CI_COMMIT_REF_NAME" + policy: pull-push + paths: + - build + - .gradle diff --git a/build.gradle.kts b/build.gradle.kts index 407fbf8..a92989d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -53,6 +53,16 @@ publishing { from(components["javaPlatform"]) } } + repositories { + maven { + url = uri("https://git.f3l.de/api/v4/groups/160/packages/maven") + name = "GitLab" + credentials(HttpHeaderCredentials::class.java) { + name = "Job-Token" + value = System.getenv("CI_JOB_TOKEN") + } + } + } } inline fun getFromProperties(name: String): T = project.properties[name] as T diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 12d38de..2a56324 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists