Skip to content

Commit

Permalink
add test targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso committed May 27, 2024
1 parent ca53594 commit 274b4eb
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ class KtorfitGradlePlugin : Plugin<Project> {
}
}", dependency
)

dependencies.add(
"ksp${
targetName.replaceFirstChar {
if (it.isLowerCase()) it.titlecase(
US
) else it.toString()
}
}Test", dependency
)
}

kotlinExtension.sourceSets.named("commonMain").configure {
Expand Down Expand Up @@ -108,8 +118,5 @@ class KtorfitGradlePlugin : Plugin<Project> {

}

private val Project.kotlinExtension: KotlinProjectExtension?
get() = this.extensions.findByType<KotlinProjectExtension>()

internal fun Project.getKtorfitConfig() =
this.extensions.findByType(KtorfitGradleConfiguration::class.java) ?: KtorfitGradleConfiguration()

0 comments on commit 274b4eb

Please sign in to comment.