diff --git a/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt b/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt index 33d828f..9da66fa 100644 --- a/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt +++ b/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt @@ -46,18 +46,10 @@ public class RedactedGradleSubplugin : KotlinCompilerPluginSupportPlugin { val extension = project.extensions.getByType(RedactedPluginExtension::class.java) @Suppress("DEPRECATION") val annotations = - extension.redactedAnnotations.zip(extension.redactedAnnotation) { - annotations, - singleAnnotation -> - annotations + singleAnnotation - } + extension.redactedAnnotations.zip(extension.redactedAnnotation, Set::plus) @Suppress("DEPRECATION") val unredactedAnnotations = - extension.unredactedAnnotations.zip(extension.unredactedAnnotation) { - annotations, - singleAnnotation -> - annotations + singleAnnotation - } + extension.unredactedAnnotations.zip(extension.unredactedAnnotation, Set::plus) // Default annotation is used, so add it as a dependency // Note only multiplatform, jvm/android, and js are supported. Anyone else is on their own.