diff options
Diffstat (limited to 'src/main/scala/CodegenPlugin.scala')
-rw-r--r-- | src/main/scala/CodegenPlugin.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/scala/CodegenPlugin.scala b/src/main/scala/CodegenPlugin.scala index 366ef19..8bde45d 100644 --- a/src/main/scala/CodegenPlugin.scala +++ b/src/main/scala/CodegenPlugin.scala @@ -19,10 +19,16 @@ object CodegenPlugin extends AutoPlugin { Generator.run( new java.net.URI(codegenURI.value), codegenPackage.value, - codegenSchemaWhitelist.value, + Some(codegenSchemaWhitelist.value).filter(_.nonEmpty), codegenOutputPath.value, codegenForeignKeys.value ) } + + lazy val baseCodegenSettings: Seq[Def.Setting[_]] = Seq( + codegen := slickCodeGenTask.value, + codegenSchemaWhitelist := List.empty, + codegenForeignKeys := Map.empty + ) } } |