From dbeff6b6f9d3f7fa70c76ac7ff22f06f5c1ad326 Mon Sep 17 00:00:00 2001 From: Matthew Nelson Date: Sun, 10 Mar 2024 18:44:10 -0400 Subject: [PATCH] Add deprecation to `InternalEncodingApi` annotation (#142) --- build.gradle.kts | 7 +------ .../encoding/core/internal/InternalEncodingApi.kt | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7a7d5800..fb44215f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,14 +52,9 @@ plugins.withType { } apiValidation { - @Suppress("LocalVariableName") - val CHECK_PUBLICATION = findProperty("CHECK_PUBLICATION") as? String - - if (CHECK_PUBLICATION != null) { + if (findProperty("CHECK_PUBLICATION") != null) { ignoredProjects.add("check-publication") } else { - nonPublicMarkers.add("io.matthewnelson.encoding.core.internal.InternalEncodingApi") - ignoredProjects.add("test") ignoredProjects.add("sample") } diff --git a/library/core/src/commonMain/kotlin/io/matthewnelson/encoding/core/internal/InternalEncodingApi.kt b/library/core/src/commonMain/kotlin/io/matthewnelson/encoding/core/internal/InternalEncodingApi.kt index 20afa42c..4805fd94 100644 --- a/library/core/src/commonMain/kotlin/io/matthewnelson/encoding/core/internal/InternalEncodingApi.kt +++ b/library/core/src/commonMain/kotlin/io/matthewnelson/encoding/core/internal/InternalEncodingApi.kt @@ -43,4 +43,5 @@ package io.matthewnelson.encoding.core.internal AnnotationTarget.TYPEALIAS ) @Retention(AnnotationRetention.BINARY) +@Deprecated(message = "deprecated due to package name incompatibility with JPMS") public annotation class InternalEncodingApi