title: unable to resolve class groovy.text.StreamingTemplateEngine
body: <p>I am trying to get some hands-on experience about template engine using groovy. Referring to the <a href="http://docs.groovy-lang.org/docs/next/html/documentation/template-engines.html#_streamingtemplateengine" rel="nofollow noreferrer">official document</a></p>
  
  <p>Below is the code snipped that I am trying to execute, but got an error saying "<strong>unable to resolve class groovy.text.StreamingTemplateEngine</strong>".</p>
  
  <pre><code>def text = '''\
      dear &lt;% out.print firstname %&gt; ${lastname},
      We &lt;% if (accepted) out.print ' are pleased' else out.print 'regret' %&gt; 
      to inform you, '$title' was ${accepted ? 'accepted' : 'declined' }. 
      '''
  
  def Template = new groovy.text.StreamingTemplateEngine().createTemplate(text)
  def binding = [
      firstname : "raghu",
      lastname : "lokineni",
      accepted : "true",
      title : "groovy"
  ]
  
  string response = Template.make(binding)
  println "${response}"
  </code></pre>
  
  <p><strong>I have further added the following code to resolve the error but no use</strong>.</p>
  
  <pre><code>import groovy.text.*
  </code></pre>
  
  <p>Can someone explain me what is that I am doing wrong?</p>