From 8077ba5db7cbfa4fd30af57bd30d83bb2828c4c9 Mon Sep 17 00:00:00 2001 From: "Mehdi.Zare" Date: Tue, 29 Oct 2024 21:35:15 +0100 Subject: [PATCH] workflow --- build.gradle.kts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 97f77e5..5b36407 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -21,7 +21,7 @@ application { repositories { mavenCentral() - mavenNav("*") + } publishing { publications { @@ -29,9 +29,7 @@ publishing { from(components["java"]) } } - repositories { - mavenNav(rootProject.name) - } + } tasks.register("printVersion") { println(project.version) @@ -62,14 +60,4 @@ tasks.withType { duplicatesStrategy = DuplicatesStrategy.EXCLUDE } -fun RepositoryHandler.mavenNav(repo: String): MavenArtifactRepository { - val githubPassword: String by project - return maven { - setUrl("https://maven.pkg.github.com/navikt/$repo") - credentials { - username = "x-access-token" - password = githubPassword - } - } -}