Skip to content

Commit

Permalink
fixed publish convention
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfmnk committed May 18, 2022
1 parent c629e7c commit 9a6f038
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,33 @@ publishing {
publications {
create("maven", MavenPublication::class.java) {
from(components["java"])

pom {
name.set(project.name)
description.set(project.description)

scm {
afterEvaluate {
pom {
packaging = "jar"
name.set(project.name)
description.set(project.description)
url.set("https://github.com/michaelfmnk/spring-undo")
connection.set("scm:git:git://github.com/michaelfmnk/spring-undo.git")
developerConnection.set("scm:git:ssh://github.com:michaelfmnk/spring-undo.git")
}

licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
scm {
url.set("https://github.com/michaelfmnk/spring-undo")
connection.set("scm:git:git://github.com/michaelfmnk/spring-undo.git")
developerConnection.set("scm:git:ssh://github.com:michaelfmnk/spring-undo.git")
}

licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
}
}
}

developers {
developer {
name.set("Mykhailo Fomenko")
email.set("michael@fomenko.dev")
url.set("https://fomenko.dev")
roles.addAll("Owner", "Developer")
developers {
developer {
name.set("Mykhailo Fomenko")
email.set("michael@fomenko.dev")
url.set("https://fomenko.dev")
roles.addAll("Owner", "Developer")
}
}
}
}
Expand Down

0 comments on commit 9a6f038

Please sign in to comment.