Skip to content

Add the organization name and url/homepage members to PomSettings #4654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions scalalib/src/mill/scalalib/publish/settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,33 @@ case class Developer(
case class PomSettings(
description: String,
organization: String,
organizationName: String,
url: String,
licenses: Seq[License],
versionControl: VersionControl,
developers: Seq[Developer],
@deprecated("Value will be ignored. Use PublishModule.pomPackagingType instead", "Mill 0.11.8")
packaging: String = PackagingType.Jar
developers: Seq[Developer]
) derives RW

object PomSettings {
@deprecated(
"This method is for backward compatibility. Use the one with `organizationName` instead."
)
def apply(
description: String,
organization: String,
url: String,
licenses: Seq[License],
versionControl: VersionControl,
developers: Seq[Developer],
@deprecated(
"Value will be ignored. Use PublishModule.pomPackagingType instead",
"Mill 0.11.8"
)
packaging: String = PackagingType.Jar
): PomSettings =
PomSettings(description, organization, "", url, licenses, versionControl, developers)
}

object PackagingType {
val Pom = "pom"
val Jar = "jar"
Expand Down
Loading