Skip to content

Commit 5cdcf6a

Browse files
Backport "Avoid duplications of properties in pom.xml" to LTS (#21022)
Backports #20020 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents 2b87b6a + eb6c59d commit 5cdcf6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,10 @@ object Build {
18081808
publishTo := sonatypePublishToBundle.value,
18091809
publishConfiguration ~= (_.withOverwrite(true)),
18101810
publishLocalConfiguration ~= (_.withOverwrite(true)),
1811+
projectID ~= {id =>
1812+
val line = "scala.versionLine" -> versionLine
1813+
id.withExtraAttributes(id.extraAttributes + line)
1814+
},
18111815
Test / publishArtifact := false,
18121816
homepage := Some(url(dottyGithubUrl)),
18131817
licenses += (("Apache-2.0",
@@ -1818,10 +1822,6 @@ object Build {
18181822
"scm:git:[email protected]:scala/scala3.git"
18191823
)
18201824
),
1821-
pomExtra :=
1822-
<properties>
1823-
<scala.versionLine>{versionLine}</scala.versionLine>
1824-
</properties>,
18251825
developers := List(
18261826
Developer(
18271827
id = "odersky",

0 commit comments

Comments
 (0)