* Remove @switch when it doesn't take effect * Use ActorRef.noSender * Minor tweaks to SchedulerSpec * Disambiguate TypedActor for Scala 3 * Bump ScalaTest to a version compatible with Scala 3 * Bump ScalaCheck * Disambiguate Event in SupervisorHierarchySpec * Scala 3 compatible EventBusSpec * Prevent private unused variables to be erased by Scala 3 * Bump mockito * Explicit actorRef2Scala import * restore original .scalafix.conf * Scala 3 compatible tailrec * Reminder to re add switch annotation in case * Move to nowarn instead of silencer * Bump to Scala 2.12.13 * Cross compatible annotations * fix docs generation * adapt the build for Scala 3 * fix errors but bus * remove more SerialVersion from trait * scalacheck only from scalatest * cross-compile akka-actor-tests * restore cross-compilation * early initializers workaround * scalacheck switch * cross compatible FSM.State class * cross compatible LARS spec * Change results to pass LineNumberSpec * fix stackoverflow in AsyncDnsResolverIntegrationSpec * FSM.State unapply * fix Scala 2.13 mima * SerialVersionRemover compiler plugin * removed unused nowarns
23 lines
744 B
Scala
23 lines
744 B
Scala
/*
|
|
* Copyright (C) 2016-2021 Lightbend Inc. <https://www.lightbend.com>
|
|
*/
|
|
|
|
package akka
|
|
|
|
import sbt.{ Def, _ }
|
|
import sbt.Keys._
|
|
|
|
/**
|
|
* 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(packageOptions in (Compile, packageBin) += Package.ManifestAttributes(AutomaticModuleName -> name))
|
|
}
|