diff options
author | Stewart Stewart <stewinsalot@gmail.com> | 2016-09-09 00:54:24 -0400 |
---|---|---|
committer | Stewart Stewart <stewinsalot@gmail.com> | 2016-09-09 11:35:01 -0400 |
commit | 4781069565f4edc94e68c14ba4fe716a0f7ef166 (patch) | |
tree | 7b6ec5b1195078b6df7243fbc3eeb106763e0714 /src/main | |
parent | bcc2a2be760dd3eeee7b24476c28b17ee1b42c44 (diff) | |
download | slick-codegen-plugin-4781069565f4edc94e68c14ba4fe716a0f7ef166.tar.gz slick-codegen-plugin-4781069565f4edc94e68c14ba4fe716a0f7ef166.tar.bz2 slick-codegen-plugin-4781069565f4edc94e68c14ba4fe716a0f7ef166.zip |
remove unused classloader/runner
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/scala/CodegenPlugin.scala | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/scala/CodegenPlugin.scala b/src/main/scala/CodegenPlugin.scala index b5e3c06..1ed057d 100644 --- a/src/main/scala/CodegenPlugin.scala +++ b/src/main/scala/CodegenPlugin.scala @@ -6,13 +6,10 @@ object CodegenPlugin extends AutoPlugin { override def requires = sbt.plugins.JvmPlugin object autoImport { lazy val genTables = TaskKey[Seq[File]]("gen-tables") - lazy val slickCodeGenTask = (baseDirectory, //sourceManaged in Compile, - dependencyClasspath in Compile, - runner in Compile, streams) map { - (dir, cp, r, s) => - // TODO Move this block into application.conf#slick.db.default.codegen + + lazy val slickCodeGenTask = Def.task { val pkg = "dbmodels" - val outputDir = (dir / "app" / pkg).getPath + val outputDir = (baseDirectory.value / "app" / pkg).getPath val fname = outputDir + "/Tables.scala" val typesfname = (file("shared") / "src" / "main" / "scala" / pkg / "rows" / "TableTypes.scala").getPath val schemas = "patients,portal,work_queues,confidential,case_accessioning,samples.samples,samples.subsamples,samples.shipment_preps,samples.collection_methods,experiments.experiments,experiments.exp_types,experiments.somatic_snvs_indels_filtered,samples.basic_diagnosis,samples.molecular_tests,samples.sample_pathology,samples.path_molecular_tests" |