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