From ba7ac04fb9b7f44b09eaebbd0aa740236503c079 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 28 Jul 2016 23:52:53 -0800 Subject: [PATCH] Reformat. --- .../main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt index 74aafaff..bab12aee 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/CompilerUtils.kt @@ -84,8 +84,10 @@ class CompilerUtils @Inject constructor(val files: KFiles, // } // The directory where the classes get compiled - val buildDirectory = if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR) + val buildDirectory = + if (isTest) File(project.buildDirectory, KFiles.TEST_CLASSES_DIR) else File(project.classesDir(context)) + File(project.directory, buildDirectory.path).mkdirs() // Remove all the excluded dependencies from the classpath