From 7cf06a539cdc45be1cbb1b9511e7adda19f1e344 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Thu, 8 Aug 2024 23:04:03 +0800 Subject: [PATCH] fix sbt publish error and add name for root project --- build.sbt | 9 ++++++++- project/MornyConfiguration.scala | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 4fc66be..7786604 100644 --- a/build.sbt +++ b/build.sbt @@ -51,7 +51,6 @@ ThisBuild / publishTo := MornyProject.publishTo ThisBuild / credentials ++= MornyProject.publishCredentials lazy val morny_system_lib = (project in file (MornyProject.morny_system_lib.id)) - .enablePlugins(BuildInfoPlugin) .settings( name := MornyProject.morny_system_lib.name, @@ -114,11 +113,19 @@ lazy val morny_coeur = (project in file(MornyProject.morny_coeur.id)) lazy val root = (project in file (".")) .aggregate(morny_system_lib, morny_coeur) .settings( + + name := "Coeur Morny Cono", + + skip := true, + update / skip := false, + assembly / aggregate := false, assembly := { (morny_coeur / assembly).value }, + run / aggregate := false, run := { (morny_coeur / Compile / run).evaluated } + ) diff --git a/project/MornyConfiguration.scala b/project/MornyConfiguration.scala index 3683be2..e6ecaef 100644 --- a/project/MornyConfiguration.scala +++ b/project/MornyConfiguration.scala @@ -10,7 +10,7 @@ object MornyConfiguration { val VERSION_DELTA: Option[String] = None val CODENAME = "xinzheng" - val SNAPSHOT = true + val SNAPSHOT = false val GROUP = "cc.sukazyo" val GROUP_NAME = "A.C. Sukazyo Eyre" @@ -65,7 +65,7 @@ object MornyConfiguration { object Morny_Coeur extends ProjectMetadata with Runnable { - override val name = "Coeur Morny Cono" + override val name = "Morny Coeur" override val id = "morny-coeur" override val group = GROUP