Skip to content

Commit 35358b1

Browse files
ckipp01lefou
andauthored
Make use of info.releaseNotesURL (#105)
This just ensures that when Scala Steward sends in a PR to your project using mainargs that it correctly points to the changelog allowing people to easily just click it and go directly to it. Pull request: #105 --------- Co-authored-by: Tobias Roeser <[email protected]>
1 parent 7d05e91 commit 35358b1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

build.sc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ val scala3 = "3.1.3"
1313
val osLib = "0.9.3"
1414
val acyclic = "0.3.11"
1515

16+
val githubOrg = "com-lihaoyi"
17+
val githubRepo = "mainargs"
18+
val projectUrl = s"https://github.com/${githubOrg}/${githubRepo}"
19+
val changelogUrl = s"${projectUrl}#changelog"
20+
1621
val scalaVersions = List(scala212, scala213, scala3)
1722

1823
trait MainArgsPublishModule
@@ -27,12 +32,16 @@ trait MainArgsPublishModule
2732

2833
override def versionScheme: T[Option[VersionScheme]] = T(Some(VersionScheme.EarlySemVer))
2934

35+
def publishProperties = super.publishProperties() ++ Map(
36+
"info.releaseNotesURL" -> changelogUrl
37+
)
38+
3039
def pomSettings = PomSettings(
3140
description = "Main method argument parser for Scala",
3241
organization = "com.lihaoyi",
33-
url = "https://github.com/com-lihaoyi/mainargs",
42+
url = projectUrl,
3443
licenses = Seq(License.MIT),
35-
versionControl = VersionControl.github("com-lihaoyi", "mainargs"),
44+
versionControl = VersionControl.github(githubOrg, githubRepo),
3645
developers = Seq(
3746
Developer("lihaoyi", "Li Haoyi", "https://github.com/lihaoyi")
3847
)

0 commit comments

Comments
 (0)