Skip to content
Snippets Groups Projects
Commit 6b1006f2 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Remove gradle dependency auth

parent 43dda78e
No related branches found
No related tags found
2 merge requests!124Production Release | nshmp-ws-static,!123Resolves - Remove GITLAB_TOKEN Requirement and AASHTO-2023 web service -- add CSV response
......@@ -10,9 +10,7 @@ ARG FROM_IMAGE=usgs/amazoncorretto:11
FROM ${BUILD_IMAGE} as builder
# TODO: Token needed until nshmp-lib is public
ARG GITLAB_TOKEN=null
ARG CI_JOB_TOKEN=null
# For GitLab CI/CD
ARG CI_PROJECT_URL=null
ARG CI_COMMIT_BRANCH=null
......
......@@ -7,23 +7,7 @@ repositories {
}
maven {
url "https://code.usgs.gov/api/v4/groups/160/-/packages/maven"
name "GitLab"
if (System.getenv("CI_JOB_TOKEN") && System.getenv("CI_JOB_TOKEN") != "null") {
credentials(HttpHeaderCredentials) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
} else if (System.getenv("GITLAB_TOKEN") && System.getenv("GITLAB_TOKEN") != "null") {
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = System.getenv("GITLAB_TOKEN")
}
} else {
throw new GradleException("CI_JOB_TOKEN or GITLAB_TOKEN environmental variable must be set")
}
authentication {
header(HttpHeaderAuthentication)
}
url "https://code.usgs.gov/api/v4/groups/1352/-/packages/maven"
name "NSHMP GitLab Group"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment