Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mettok committed Oct 29, 2024
1 parent 2308784 commit 8077ba5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ application {

repositories {
mavenCentral()
mavenNav("*")

}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
}
}
repositories {
mavenNav(rootProject.name)
}

}
tasks.register("printVersion") {
println(project.version)
Expand Down Expand Up @@ -62,14 +60,4 @@ tasks.withType<Jar> {
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
}
}
}

0 comments on commit 8077ba5

Please sign in to comment.