Skip to content

Commit

Permalink
F - Endrer maven url til cached maven release som ikke trenger PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
dskarpas committed Jan 17, 2025
1 parent c0a944d commit ccf354d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions buildSrc/ep-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@ apply plugin: com.adarshr.gradle.testlogger.TestLoggerPlugin
repositories {
mavenCentral()

String token = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.key")
if (!token) throw new NullPointerException("Missing token, you have to set GITHUB_TOKEN or gpr.key, see README")
maven {
url = uri("https://maven.pkg.github.com/navikt/maven-release")
credentials {
username = "token"
password = token
}
url = uri("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}
}

Expand Down

0 comments on commit ccf354d

Please sign in to comment.