Skip to content

Commit

Permalink
Minor bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Dec 21, 2024
1 parent cfca28a commit e701e48
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>::plus)
@Suppress("DEPRECATION")
val unredactedAnnotations =
extension.unredactedAnnotations.zip(extension.unredactedAnnotation) {
annotations,
singleAnnotation ->
annotations + singleAnnotation
}
extension.unredactedAnnotations.zip(extension.unredactedAnnotation, Set<String>::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.
Expand Down

0 comments on commit e701e48

Please sign in to comment.