From fd4251765a163fc599789014eaccc0c271c10427 Mon Sep 17 00:00:00 2001 From: David Denton Date: Sun, 25 Aug 2024 22:16:29 +0100 Subject: [PATCH] add flags for consistent copy visibility --- .../http4k/connect/amazon/eventbridge/action/CreateEventBus.kt | 2 +- build.gradle.kts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/amazon/eventbridge/client/src/main/kotlin/org/http4k/connect/amazon/eventbridge/action/CreateEventBus.kt b/amazon/eventbridge/client/src/main/kotlin/org/http4k/connect/amazon/eventbridge/action/CreateEventBus.kt index b0c42700f..fef31af09 100644 --- a/amazon/eventbridge/client/src/main/kotlin/org/http4k/connect/amazon/eventbridge/action/CreateEventBus.kt +++ b/amazon/eventbridge/client/src/main/kotlin/org/http4k/connect/amazon/eventbridge/action/CreateEventBus.kt @@ -10,7 +10,7 @@ import se.ansman.kotshi.JsonSerializable @Http4kConnectAction @JsonSerializable -data class CreateEventBus internal constructor( +data class CreateEventBus( val Name: EventBusName, val EventSourceName: EventSourceName? = null, val Tags: List? = null diff --git a/build.gradle.kts b/build.gradle.kts index 2829b73ad..676ce46a9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -353,6 +353,7 @@ tasks.named("compileTestKotlin") { compilerOptions { jvmTarget.set(JVM_1_8) freeCompilerArgs.add("-Xjvm-default=all") + freeCompilerArgs.add("-Xconsistent-data-class-copy-visibility") } }