Skip to content

Commit

Permalink
properly configure publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Jul 3, 2024
1 parent 55ec56f commit b7c5245
Showing 1 changed file with 37 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,45 @@ plugins {
`maven-publish`
}

publishing.publications.register(project.name, MavenPublication::class) {
artifactId = "javacan-${project.name}"
from(components["java"])
java {
withSourcesJar()
withJavadocJar()
}

pom {
name = "JavaCAN"
description = project.description
url = "https://github.com/pschichtel/JavaCAN"
licenses {
license {
name = "MIT"
url = "https://opensource.org/licenses/MIT"
}
}
developers {
developer {
id.set("pschichtel")
name.set("Phillip Schichtel")
email.set("[email protected]")
publishing {
publications {
register<MavenPublication>("maven") {
artifactId = "javacan-${project.name}"
from(components["java"])

pom {
name = "JavaCAN"
description = project.description
url = "https://github.com/pschichtel/JavaCAN"
licenses {
license {
name = "MIT"
url = "https://opensource.org/licenses/MIT"
}
}
developers {
developer {
id.set("pschichtel")
name.set("Phillip Schichtel")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/pschichtel/JavaCAN")
connection.set("scm:git:https://github.com/pschichtel/JavaCAN")
developerConnection.set("scm:git:[email protected]:pschichtel/JavaCAN")
}
}
}
scm {
url.set("https://github.com/pschichtel/JavaCAN")
connection.set("scm:git:https://github.com/pschichtel/JavaCAN")
developerConnection.set("scm:git:[email protected]:pschichtel/JavaCAN")
}
}
}

signing {
useGpgCmd()
sign(publishing.publications)
}

0 comments on commit b7c5245

Please sign in to comment.