Loading .gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:1263-Add_java stages: - lib - publish before_script: - export GRADLE_USER_HOME=$(pwd)/.gradle Loading @@ -19,3 +20,8 @@ lib: artifacts: paths: - lib/build/outputs/aar/ publish: stage: publish script: - ./gradlew :ical4android:publish lib/build.gradle.kts +17 −2 Original line number Diff line number Diff line Loading @@ -72,14 +72,29 @@ publishing { // Configure publishing data publications { register("release", MavenPublication::class.java) { groupId = "com.github.bitfireAT" groupId = "foundation.e.lib" artifactId = "ical4android" version = System.getenv("GIT_COMMIT") version = "1.0.0" afterEvaluate { from(components["release"]) } } repositories { maven { name = "GitLab" url = uri("https://gitlab.e.foundation/api/v4/projects/97/packages/maven") credentials(HttpHeaderCredentials::class) { name = "Job-Token" value = System.getenv("CI_JOB_TOKEN") } authentication { create<HttpHeaderAuthentication>("header") } } } } } Loading Loading
.gitlab-ci.yml +6 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ image: "registry.gitlab.e.foundation/e/os/docker-android-apps-cicd:1263-Add_java stages: - lib - publish before_script: - export GRADLE_USER_HOME=$(pwd)/.gradle Loading @@ -19,3 +20,8 @@ lib: artifacts: paths: - lib/build/outputs/aar/ publish: stage: publish script: - ./gradlew :ical4android:publish
lib/build.gradle.kts +17 −2 Original line number Diff line number Diff line Loading @@ -72,14 +72,29 @@ publishing { // Configure publishing data publications { register("release", MavenPublication::class.java) { groupId = "com.github.bitfireAT" groupId = "foundation.e.lib" artifactId = "ical4android" version = System.getenv("GIT_COMMIT") version = "1.0.0" afterEvaluate { from(components["release"]) } } repositories { maven { name = "GitLab" url = uri("https://gitlab.e.foundation/api/v4/projects/97/packages/maven") credentials(HttpHeaderCredentials::class) { name = "Job-Token" value = System.getenv("CI_JOB_TOKEN") } authentication { create<HttpHeaderAuthentication>("header") } } } } } Loading