Skip to content

Commit

Permalink
legger inn åpent NAV-mirror for github-pakker
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Jan 10, 2024
1 parent f9adf99 commit 0ed365c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,20 @@ allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")

repositories {
val githubPassword: String by project
val githubPassword: String? by project
mavenCentral()
maven("https://jitpack.io")
/* ihht. https://github.com/navikt/utvikling/blob/main/docs/teknisk/Konsumere%20biblioteker%20fra%20Github%20Package%20Registry.md
så plasseres github-maven-repo (med autentisering) før nav-mirror slik at github actions kan anvende førstnevnte.
Det er fordi nav-mirroret kjører i Google Cloud og da ville man ellers fått unødvendige utgifter til datatrafikk mellom Google Cloud og GitHub
*/
maven {
url = uri("https://maven.pkg.github.com/navikt/*")
url = uri("https://maven.pkg.github.com/navikt/maven-release")
credentials {
username = "x-access-token"
password = githubPassword
}
}
maven("https://github-package-registry-mirror.gc.nav.no/cached/maven-release")
}

/*
Expand Down
4 changes: 0 additions & 4 deletions sykepenger-opprydding-dev/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ plugins {

val mainClass = "no.nav.helse.opprydding.AppKt"

repositories {
mavenCentral()
}

dependencies {
implementation(libs.rapids.and.rivers)
implementation(libs.bundles.database)
Expand Down

0 comments on commit 0ed365c

Please sign in to comment.