title: How to use Kotlinx serialization with jvm plugin
body: <p>I can't use Kotlinx serialization with the Kotlin JVM plugin</p>
  <p>In <a href="https://github.com/Kotlin/kotlinx.serialization#using-the-plugins-block" rel="nofollow noreferrer">the instructions for Groovy DSL</a>:</p>
  <pre><code>plugins {
      id 'org.jetbrains.kotlin.multiplatform' version '1.5.0'
      id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.0'
  }
  </code></pre>
  <p>Because I already use the <code>org.jetbrains.kotlin.jvm</code>, I want to use it with the JVM plugin but the instructions do not explicitly show how.</p>
  <p>In <code>build.gradle</code>, I tried using:</p>
  <pre><code>plugins {
      id 'org.jetbrains.kotlin.jvm' version '1.5.0'
      id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.0'
      ...
  }
  </code></pre>
  <p>In code:</p>
  <pre><code>import kotlinx.serialization.*
  </code></pre>
  <p>And, I get a compilation error (<code>Unresolved reference: serialization</code>). How can I use kotlinx serialization with the JVM plugin? Also, I need it in the Groovy DSL syntax. <a href="https://github.com/Kotlin/kotlinx.serialization#using-the-plugins-block" rel="nofollow noreferrer">The instructions</a> already show it for the Kotlin DSL but I don't use it. Can anyone help?</p>