Try adding some publish task.

This commit is contained in:
Oliver Rümpelein 2021-02-21 14:38:16 +01:00
parent aad1a52cac
commit 4bb1144eac
3 changed files with 21 additions and 1 deletions

View file

@ -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

View file

@ -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 <reified T> getFromProperties(name: String): T = project.properties[name] as T

View file

@ -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