feat: Deprecate Version annotation

This commit is contained in:
oSumAtrIX 2023-07-28 20:16:59 +02:00
parent 4b5e25b29c
commit c52f0b80f2
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 2 additions and 0 deletions

View file

@ -26,6 +26,7 @@ annotation class Description(
* @param version The version of a [Patch].
*/
@Target(AnnotationTarget.CLASS)
@Deprecated("This annotation is deprecated and will be removed in the future.")
annotation class Version(
val version: String,
)

View file

@ -25,6 +25,7 @@ object PatchExtensions {
/**
* The version of a [Patch].
*/
@Deprecated("This property is deprecated and will be removed in the future.")
val PatchClass.version
get() = findAnnotationRecursively(Version::class)?.version