diff --git a/amm/src/main/scala/ammonite/AmmoniteMain.scala b/amm/src/main/scala/ammonite/AmmoniteMain.scala index 0d44200ec..d1311ad2e 100644 --- a/amm/src/main/scala/ammonite/AmmoniteMain.scala +++ b/amm/src/main/scala/ammonite/AmmoniteMain.scala @@ -20,7 +20,8 @@ import coursierapi.Dependency import scala.concurrent.Await import scala.concurrent.duration.Duration - +// needed to support deprecated Main.main +import acyclic.skipped object AmmoniteMain{ diff --git a/amm/src/main/scala/ammonite/Main.scala b/amm/src/main/scala/ammonite/Main.scala index 54728d3d0..720cf967c 100644 --- a/amm/src/main/scala/ammonite/Main.scala +++ b/amm/src/main/scala/ammonite/Main.scala @@ -20,6 +20,8 @@ import coursierapi.Dependency import scala.concurrent.Await import scala.concurrent.duration.Duration +// needed to support deprecated Main.main +import acyclic.skipped /** @@ -266,3 +268,7 @@ case class Main(predefCode: String = "", } } +object Main { + @deprecated("Use ammonite.AmmoniteMain.main instead", "2.5.0") + def main(args: Array[String]): Unit = AmmoniteMain.main(args) +} diff --git a/amm/src/main/scala/ammonite/MainRunner.scala b/amm/src/main/scala/ammonite/MainRunner.scala index fac8d24a3..3f00c8d3c 100644 --- a/amm/src/main/scala/ammonite/MainRunner.scala +++ b/amm/src/main/scala/ammonite/MainRunner.scala @@ -18,6 +18,8 @@ import scala.annotation.tailrec import scala.concurrent.Await import scala.concurrent.duration.Duration +// needed to support deprecated Main.main +import acyclic.skipped /** * Bundles together: