From 57670ea04708e345f253a02baad3c7f8d5c3801f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 23 Apr 2023 14:54:05 +0530 Subject: fix(build): do not apply Android plugin in kapt plugin --- .../src/main/kotlin/app/passwordstore/gradle/KotlinKaptPlugin.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'build-logic') 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 { override fun apply(project: Project) { - project.pluginManager.run { - apply(KotlinAndroidPluginWrapper::class) - apply(Kapt3GradleSubplugin::class) - } + project.pluginManager.apply(Kapt3GradleSubplugin::class) project.afterEvaluate { project.extensions.configure { javacOptions { -- cgit v1.2.3