Skip to content

Commit 301c977

Browse files
authored
Avoid duplications of properties in pom.xml (#20020)
Inspired by how to add release notes URL : https://contributors.scala-lang.org/t/add-release-notes-urls-to-your-poms/6059 Closes #20016
2 parents ff6ef73 + 7a3dc44 commit 301c977

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/Build.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -1999,6 +1999,10 @@ object Build {
19991999
publishTo := sonatypePublishToBundle.value,
20002000
publishConfiguration ~= (_.withOverwrite(true)),
20012001
publishLocalConfiguration ~= (_.withOverwrite(true)),
2002+
projectID ~= {id =>
2003+
val line = "scala.versionLine" -> versionLine
2004+
id.withExtraAttributes(id.extraAttributes + line)
2005+
},
20022006
Test / publishArtifact := false,
20032007
homepage := Some(url(dottyGithubUrl)),
20042008
licenses += (("Apache-2.0",
@@ -2009,10 +2013,6 @@ object Build {
20092013
"scm:git:git@github.com:scala/scala3.git"
20102014
)
20112015
),
2012-
pomExtra :=
2013-
<properties>
2014-
<scala.versionLine>{versionLine}</scala.versionLine>
2015-
</properties>,
20162016
developers := List(
20172017
Developer(
20182018
id = "odersky",

0 commit comments

Comments
 (0)