Use proper maven
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-03 14:38:05 +01:00
parent 9bf6446082
commit 958fb90822
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 11 additions and 11 deletions

View File

@ -46,7 +46,7 @@ pipeline:
- gradle --build-cache build :launcher-dist:publish -Pflavor=windows -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
- gradle --build-cache build :launcher-dist:publish -Pflavor=linux -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
- gradle --build-cache build :launcher-dist:publish -Pflavor=macos -Pdist.platformOnly -Ppublic -Ptimestamp=${CI_PIPELINE_STARTED}
secrets: [ maven_token ]
secrets: [ maven_token, maven_name ]
when:
- branch: master
publish_release:
@ -61,7 +61,7 @@ pipeline:
- 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
secrets: [ maven_token ]
secrets: [ maven_token, maven_name ]
when:
- event: tag
branch: master

View File

@ -14,20 +14,20 @@ dependencies {
publishing {
repositories {
if (rootProject.extra["isPublic"] == true) {
maven {
url = uri("https://git.frohnmeyer-wds.de/api/packages/JfMods/maven")
name = "gitea"
mavenLocal()
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = System.getenv()["MAVEN_TOKEN"]
if (rootProject.extra["isPublic"] == true) {
maven("https://maven.frohnmeyer-wds.de/artifacts") {
name = "public"
credentials(PasswordCredentials::class) {
username = System.getenv()["MAVEN_NAME"]
password = System.getenv()["MAVEN_TOKEN"]
}
authentication {
create<HttpHeaderAuthentication>("header")
create<BasicAuthentication>("basic")
}
}
}
mavenLocal()
}
}