-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set module name to match what we have in our docs (#88)
* set module name to match what we have in our docs refactor * scalafmt
- Loading branch information
Showing
2 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* license agreements; and to You under the Apache License, version 2.0: | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* This file is part of the Apache Pekko project, which was derived from Akka. | ||
*/ | ||
|
||
/* | ||
* Copyright (C) 2016-2022 Lightbend Inc. <https://www.lightbend.com> | ||
*/ | ||
|
||
import sbt.Keys._ | ||
import sbt._ | ||
|
||
/** | ||
* Helper to set Automatic-Module-Name in projects. | ||
* | ||
* !! DO NOT BE TEMPTED INTO AUTOMATICALLY DERIVING THE NAMES FROM PROJECT NAMES !! | ||
* | ||
* The names carry a lot of implications and DO NOT have to always align 1:1 with the group ids or package names, | ||
* though there should be of course a strong relationship between them. | ||
*/ | ||
object AutomaticModuleName { | ||
private val AutomaticModuleName = "Automatic-Module-Name" | ||
|
||
def settings(name: String): Seq[Def.Setting[Task[Seq[PackageOption]]]] = | ||
Seq(Compile / packageBin / packageOptions += Package.ManifestAttributes(AutomaticModuleName -> name)) | ||
} |