From 3dc596252d4e10ecff51dadcc14dea1197c11c14 Mon Sep 17 00:00:00 2001 From: Moritz Ruth Date: Mon, 4 Jan 2021 17:51:32 +0100 Subject: [PATCH] Fix entity stubs being generated despite they already exist in kotlin source set --- .../kotlin/space/uranos/mdsp/generator/EntitiesGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/space/uranos/mdsp/generator/EntitiesGenerator.kt b/buildSrc/src/main/kotlin/space/uranos/mdsp/generator/EntitiesGenerator.kt index 501def4..6c3ac5d 100644 --- a/buildSrc/src/main/kotlin/space/uranos/mdsp/generator/EntitiesGenerator.kt +++ b/buildSrc/src/main/kotlin/space/uranos/mdsp/generator/EntitiesGenerator.kt @@ -73,7 +73,7 @@ class EntitiesGenerator( val name = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, entity.get("name").toString())!! + "Entity" - val filePathRelativeToSourceRoot = "./${BLOCK_PACKAGE.replace(".", "/")}/$name.kt" + val filePathRelativeToSourceRoot = "./${ENTITY_PACKAGE.replace(".", "/")}/$name.kt" if (sourcesDir.resolve(filePathRelativeToSourceRoot).exists()) continue val type = TypeSpec.classBuilder(name)