From 01de0ad5a4e4f776ef1f2fbcef7072e82f4c0ede Mon Sep 17 00:00:00 2001 From: Roman Langolf Date: Fri, 15 Nov 2024 13:01:33 +0700 Subject: [PATCH] update default output directory --- .../main/scala/com/anymindgroup/sbt/PgCodeGenPlugin.scala | 2 +- modules/sbt/src/sbt-test/test/basic/test | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/sbt/src/main/scala/com/anymindgroup/sbt/PgCodeGenPlugin.scala b/modules/sbt/src/main/scala/com/anymindgroup/sbt/PgCodeGenPlugin.scala index f52c1f1..8fd1d4f 100644 --- a/modules/sbt/src/main/scala/com/anymindgroup/sbt/PgCodeGenPlugin.scala +++ b/modules/sbt/src/main/scala/com/anymindgroup/sbt/PgCodeGenPlugin.scala @@ -59,7 +59,7 @@ object PgCodeGenPlugin extends AutoPlugin { pgCodeGenPassword := None, pgCodeGenSqlSourceDir := file("src") / "main" / "resources" / "db" / "migration", pgCodeGenOutputPackage := "anychat.chat.db", - pgCodeGenOutputDir := (Compile / sourceManaged).value, + pgCodeGenOutputDir := (Compile / sourceManaged).value / "main", pgCodeGenExcludedTables := Nil, pgCodeGenUseDockerImage := Some("postgres:16-alpine"), pgCodeGen := { diff --git a/modules/sbt/src/sbt-test/test/basic/test b/modules/sbt/src/sbt-test/test/basic/test index 540736a..845c452 100644 --- a/modules/sbt/src/sbt-test/test/basic/test +++ b/modules/sbt/src/sbt-test/test/basic/test @@ -1,6 +1,6 @@ > +pgCodeGen -$ exists target/scala-2.13/src_managed/com/example/TestTable.scala -$ exists target/scala-2.13/src_managed/com/example/TestRow.scala -$ exists target/scala-3.3.3/src_managed/com/example/TestTable.scala -$ exists target/scala-3.3.3/src_managed/com/example/TestRow.scala +$ exists target/scala-2.13/src_managed/main/com/example/TestTable.scala +$ exists target/scala-2.13/src_managed/main/com/example/TestRow.scala +$ exists target/scala-3.3.3/src_managed/main/com/example/TestTable.scala +$ exists target/scala-3.3.3/src_managed/main/com/example/TestRow.scala > +compile