diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-23 14:54:05 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-04-23 14:54:05 +0530 |
commit | 57670ea04708e345f253a02baad3c7f8d5c3801f (patch) | |
tree | c2e7f201929bb2cb07a74d3e6f595e4161f7f435 | |
parent | 57be46b5904a7dcc79880b03abac20904ba75625 (diff) |
fix(build): do not apply Android plugin in kapt plugin
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt index 893b89d3..33e68bbc 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt @@ -11,16 +11,12 @@ import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.configure import org.jetbrains.kotlin.gradle.internal.Kapt3GradleSubplugin import org.jetbrains.kotlin.gradle.plugin.KaptExtension -import org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper @Suppress("Unused") class KotlinKaptPlugin : Plugin<Project> { override fun apply(project: Project) { - project.pluginManager.run { - apply(KotlinAndroidPluginWrapper::class) - apply(Kapt3GradleSubplugin::class) - } + project.pluginManager.apply(Kapt3GradleSubplugin::class) project.afterEvaluate { project.extensions.configure<KaptExtension> { javacOptions { |