title: Can't use 'jsonschema2pojo' gradle plugin in plugins {} block?
body: <p>Anyone can explain where to get the <code>id</code> of that plugin and why I can't use it in <code>plugins{}</code> ?</p>
  
  <p>I want to start using this</p>
  
  <pre><code>plugins {
      id "jsonschema2pojo" version "0.5.1"
  }
  </code></pre>
  
  <p>but instead, I'm forced to use the old way of applying plugins with <code>buildscript</code></p>
  
  <p>I cant use both as those are excluding each other.</p>
  
  <p>here's the question I asked on GitHub
  <a href="https://github.com/joelittlejohn/jsonschema2pojo/issues/896#issuecomment-411491416" rel="nofollow noreferrer">https://github.com/joelittlejohn/jsonschema2pojo/issues/896#issuecomment-411491416</a></p>
  
  <p>If not possible anyone know a better/different gradle plugin to achieve this?</p>