Use proper maven
This commit is contained in:
parent
9bf6446082
commit
958fb90822
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue