title: including a class in a groovy file
body: <p>I have tried to include a class(literally cut and pasted from one groovy file to another).</p>
  
  <p>I get the below error</p>
  
  <p>Error(s) in Groovy Script: startup failed, Script1.groovy: 101: Class definition not expected here. Possible attempt to use inner class. Inner classes not supported, perhaps try using a closure instead.</p>
  
  <p>The objective is to separate the whole static logic separately.</p>