Skip to content

Commit eb6c59d

Browse files
hamzaremmalWojciechMazur
authored andcommitted
Avoid duplications of properties in pom.xml
[Cherry-picked 7a3dc44]
1 parent 1af6201 commit eb6c59d

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)