Skip to content

Commit

Permalink
Add scm to POM
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkumar9t2 committed Oct 8, 2021
1 parent d1d7eb1 commit b59781f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build-logic/src/main/kotlin/publish/PublishingLibrary.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class PublishingLibrary : ConfigurablePlugin({
add("archives", javaDocsTask)
}

val website = findProperty("website").toString()

// Setup publishing
afterEvaluate {
configure<PublishingExtension> {
Expand Down Expand Up @@ -82,6 +84,12 @@ public class PublishingLibrary : ConfigurablePlugin({
email.set("[email protected]")
}
}

scm {
connection.set("${website}.git")
developerConnection.set("${website}.git")
url.set(website)
}
}
}
}
Expand Down

0 comments on commit b59781f

Please sign in to comment.