diff options
author | Stewart Stewart <stewinsalot@gmail.com> | 2016-11-16 13:51:53 -0800 |
---|---|---|
committer | Stewart Stewart <stewinsalot@gmail.com> | 2016-11-16 13:53:10 -0800 |
commit | d6a2e2265212bf7a38f9de7e8846bd1031827787 (patch) | |
tree | 0f5cf84cb4ed542a510e214a8bfeb17b05ede901 /src/main | |
parent | adc677304195a9d0f797aa62f636c00ee9278b61 (diff) | |
download | slick-codegen-plugin-d6a2e2265212bf7a38f9de7e8846bd1031827787.tar.gz slick-codegen-plugin-d6a2e2265212bf7a38f9de7e8846bd1031827787.tar.bz2 slick-codegen-plugin-d6a2e2265212bf7a38f9de7e8846bd1031827787.zip |
add defaults for codegen parameters
Diffstat (limited to 'src/main')
-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 2b5ceb5..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, - Option(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 + ) } } |