Skip to content

Commit

Permalink
Try to publish a package
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Oct 18, 2023
1 parent aa86735 commit f8dfe4d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions backend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
plugins {
id("java")
`maven-publish`
}

publishing {
repositories {
maven {
groupId = 'fr.gouv.monitor'
artifactId = 'api'
version = "VERSION_TO_CHANGE"
from components.java

pom {
name = 'Monitor APIs'
description = 'API contracts'
}

name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mtes-mct/monitorenv")
credentials {
Expand All @@ -24,7 +15,11 @@ publishing {
}
}
publications {
register<MavenPublication>("gpr") {
register<MavenPublication>("monitorenv") {
groupId = "fr.gouv.monitor"
artifactId = "api"
version = "VERSION_TO_CHANGE"

from(components["java"])
}
}
Expand Down

0 comments on commit f8dfe4d

Please sign in to comment.