Discover how to define custom annotations in Kotlin. Learn about annotation retention, targets, and how to utilize metadata in your own libraries.