Try adding some publish task.
This commit is contained in:
parent
aad1a52cac
commit
4bb1144eac
3 changed files with 21 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue