Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Deliver Maven package to Gitlab registry"

Merged Florent Coriat requested to merge 69-deliver-maven-package-to-gitlab-registry into dev
1 file
+ 20
0
Compare changes
  • Side-by-side
  • Inline
+ 20
0
@@ -25,6 +25,7 @@ plugins {
kotlin("multiplatform") version "1.4.10"
kotlin("plugin.serialization") version "1.4.10"
id("org.jetbrains.dokka") version "1.4.10.2"
id("maven-publish")
id("lt.petuska.npm.publish") version "1.0.2"
}
@@ -140,6 +141,25 @@ tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
publishing {
repositories {
maven {
name = "Gitlab"
url = uri(
"https://gitlab.inria.fr/api/v4/projects/" +
"${System.getenv("CI_PROJECT_ID")}/packages/maven"
)
credentials(HttpHeaderCredentials::class) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}
npmPublishing {
organization = group as String
repositories {
Loading