Skip to content

Commit d22882e

Browse files
ZacSweerstschuchortdev
authored andcommitted
Fix name for resources dir
This tripped me up on some testing locally due to it not being the conventional `resources` name
1 parent a8ebad1 commit d22882e

File tree

1 file changed

+3
-3
lines changed
  • ksp/src/main/kotlin/com/tschuchort/compiletesting

1 file changed

+3
-3
lines changed

ksp/src/main/kotlin/com/tschuchort/compiletesting/Ksp.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ private val KotlinCompilation.kspJavaSourceDir: File
7070
private val KotlinCompilation.kspKotlinSourceDir: File
7171
get() = kspSourcesDir.resolve("kotlin")
7272

73-
private val KotlinCompilation.kspResourceDir: File
74-
get() = kspSourcesDir.resolve("resource")
73+
private val KotlinCompilation.kspResources: File
74+
get() = kspSourcesDir.resolve("resources")
7575

7676
/**
7777
* The working directory for KSP
@@ -155,7 +155,7 @@ private class KspCompileTestingComponentRegistrar(
155155
it.deleteRecursively()
156156
it.mkdirs()
157157
}
158-
this.resourceOutputDir = compilation.kspResourceDir.also {
158+
this.resourceOutputDir = compilation.kspResources.also {
159159
it.deleteRecursively()
160160
it.mkdirs()
161161
}

0 commit comments

Comments
 (0)