Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f12692e4 authored by Amit Kumar's avatar Amit Kumar 💻 Committed by Romain Hunault
Browse files

Publish /e/ UI Sdk to gitlab maven package registry

Change-Id: I8739815a6de42b51babfe2237360e42b678775e4
parent 1b154eb5
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
stages:
  - update-from-upstream
  - build-sdk
  - publish 

include:
  - project: 'e/priv/os/build'
@@ -19,3 +20,10 @@ build-sdk:
  artifacts:
    paths:
    - e-ui-sdk.jar

publish:
  only:
    - v1-q
  stage: publish
  script: 
    - 'gradle publish'

build.gradle

0 → 100644
+46 −0
Original line number Diff line number Diff line
plugins {
    id 'maven-publish'
}

publishing {
    publications {
        maven(MavenPublication) {
            groupId = 'foundation.e'
            artifactId = 'e-ui-sdk'
            version = '1.0-q'
            artifact ("e-ui-sdk.jar")
            pom {
                name = '/e/ UI SDK Library'
                description = 'A design library to be used specifically for /e/ OS to have common themes across the apps.'
                url = 'https://gitlab.e.foundation/e/os/android_lineage-sdk'
                licenses {
                    license {
                        name = 'The Apache License, Version 2.0'
                        url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                    }
                }
                developers {
                    developer {
                        id = 'amitkumar'
                        name = 'Amit Kumar'
                        email = 'amitkma@e.email'
                    }
                }
            }
        }
    }

    repositories {
        maven {
            url "https://gitlab.e.foundation/api/v4/projects/185/packages/maven"
            name "GitLab"
            credentials(HttpHeaderCredentials) {
                name = 'Job-Token'
                value = System.getenv("CI_JOB_TOKEN")
            }
            authentication {
                header(HttpHeaderAuthentication)
            }
        }
    }
}