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

Commit ada03988 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

use our gitlab maven

parent 9b53fd21
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ android {
    }
}
dependencies{
    implementation project(":privacymodulesapi")
    implementation 'foundation.e:privacymodule.api:0.4.1'
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
+27 −0
Original line number Diff line number Diff line
@@ -15,5 +15,32 @@ allprojects {
    repositories {
        google()
        jcenter()
        def ciJobToken = System.getenv("CI_JOB_TOKEN")
        def ciApiV4Url = System.getenv("CI_API_V4_URL")
        if (ciJobToken != null) {
            maven {
                url "${ciApiV4Url}/groups/13662/-/packages/maven"
                name "GitLab"
                credentials(HttpHeaderCredentials) {
                    name = 'Job-Token'
                    value = ciJobToken
                }
                authentication {
                    header(HttpHeaderAuthentication)
                }
            }
        } else {
            maven {
                url "https://gitlab.e.foundation/api/v4/groups/13662/-/packages/maven"
                name "GitLab"
                credentials(HttpHeaderCredentials) {
                    name = 'Private-Token'
                    value = 'private-token'
                }
                authentication {
                    header(HttpHeaderAuthentication)
                }
            }
        }
    }
}
+0 −1
Original line number Diff line number Diff line
include ':app'
include ':privacymodulesapi'