diff --git a/gradle/repositories.gradle b/gradle/repositories.gradle index 394c441cc91669f10b266dd9333d9a5e1b5a1e21..3005866aa59441d344dbf0cb7ea62660388a666b 100644 --- a/gradle/repositories.gradle +++ b/gradle/repositories.gradle @@ -5,4 +5,21 @@ repositories { url "https://code.usgs.gov/api/v4/groups/1352/-/packages/maven" name "NSHMP GitLab Group" } + + maven { + url 'https://code.usgs.gov/api/v4/projects/7055/packages/maven' + name = "GitLab" + credentials(HttpHeaderCredentials) { + if (System.getenv("GITLAB_TOKEN")) { + name = 'Private-Token' + value = System.getenv("GITLAB_TOKEN") + } else { + name = 'Job-Token' + value = System.getenv("CI_JOB_TOKEN") + } + } + authentication { + header(HttpHeaderAuthentication) + } + } }