Revert "Revert "One last release on gitlab""
This reverts commit 7dee85292c
.
This commit is contained in:
parent
7dee85292c
commit
3563d7449b
|
@ -0,0 +1,55 @@
|
|||
variables:
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||
|
||||
default:
|
||||
image: gradle:jdk18
|
||||
before_script:
|
||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
- export TIMESTAMP=$(date -d "$CI_PIPELINE_CREATED_AT" +%s)
|
||||
|
||||
build_test:
|
||||
stage: build
|
||||
script:
|
||||
- gradle --build-cache :exportMetadata -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
artifacts:
|
||||
paths:
|
||||
- version.json
|
||||
expire_in: 2 days
|
||||
|
||||
build_platform_jars:
|
||||
stage: build
|
||||
script:
|
||||
- gradle --build-cache :launcher-dist:build -Pflavor=fat -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache :launcher-dist:build -Pflavor=windows -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache :launcher-dist:build -Pflavor=linux -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache :launcher-dist:build -Pflavor=macos -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- for f in launcher-dist/build/libs/Inceptum-*-*-*.jar; do mv "$f" "Inceptum-${f##*-}";done
|
||||
- mv Inceptum-fat.jar Inceptum.jar
|
||||
artifacts:
|
||||
paths:
|
||||
- launcher-dist/build/libs
|
||||
- Inceptum-*.jar
|
||||
- Inceptum.jar
|
||||
expire_in: 2 days
|
||||
|
||||
publish_debug:
|
||||
stage: deploy
|
||||
script:
|
||||
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Ptimestamp=$TIMESTAMP
|
||||
only:
|
||||
- master
|
||||
|
||||
publish_release:
|
||||
stage: deploy
|
||||
script:
|
||||
- gradle --build-cache build publish -Pflavor=maven -Ppublic -Prelease
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=fat -Pdist.platformOnly -Ppublic -Prelease
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Prelease
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Prelease
|
||||
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Prelease
|
||||
only:
|
||||
- master
|
|
@ -17,15 +17,16 @@ publishing {
|
|||
mavenLocal()
|
||||
|
||||
if (rootProject.extra["isPublic"] == true) {
|
||||
maven("https://maven.frohnmeyer-wds.de/artifacts") {
|
||||
name = "public"
|
||||
maven {
|
||||
url = uri("https://gitlab.com/api/v4/projects/30862253/packages/maven")
|
||||
name = "gitlab"
|
||||
|
||||
credentials(PasswordCredentials::class) {
|
||||
username = System.getenv()["MAVEN_NAME"]
|
||||
password = System.getenv()["MAVEN_TOKEN"]
|
||||
credentials(HttpHeaderCredentials::class) {
|
||||
name = "Job-Token"
|
||||
value = System.getenv()["CI_JOB_TOKEN"]
|
||||
}
|
||||
authentication {
|
||||
create<BasicAuthentication>("basic")
|
||||
create<HttpHeaderAuthentication>("header")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 02d86b7a822c3532012f0b9e2ae4506112427877
|
||||
Subproject commit 11fb5ad2ad266bac007e7b11178fc3585cac45b9
|
Loading…
Reference in New Issue