title: Griffon official Tutorial: unable to successfully build griffon-swing-groovy project generated with lazybones
body: <p>I am following the <a href="http://new.griffon-framework.org/tutorials/1_getting_started.html" rel="nofollow">Griffon official Tutorial</a> but I cannot get it running using groovy as main language and swing as UI library.</p>
  
  <p>This is my environment:</p>
  
  <pre><code>$ gvm version
  Groovy enVironment Manager 2.4.2
  
  $ lazybones -version
  Lazybones version 0.8.1
  
  $gradle --version
  ------------------------------------------------------------
  Gradle 2.4
  ------------------------------------------------------------
  
  Build time:   2015-05-05 08:09:24 UTC
  Build number: none
  Revision:     5c9c3bc20ca1c281ac7972643f1e2d190f2c943c
  
  Groovy:       2.3.10
  Ant:          Apache Ant(TM) version 1.9.4 compiled on April 29 2014
  JVM:          1.8.0_45 (Oracle Corporation 25.45-b02)
  OS:           Mac OS X 10.9.5 x86_64
  </code></pre>
  
  <p>The <code>lazybones</code> templates (found in <code>$HOME/.lazybones/templates</code>) are: <code>griffon-javafx-java-1.3.0.zip</code>  <code>griffon-swing-groovy-1.3.0.zip</code>    <code>griffon-swing-java-1.3.0.zip</code>.</p>
  
  <p>As I would like to use groovy as main language and Swing as UI library, I ran the following command accepting all defaults:</p>
  
  <pre><code>$ lazybones create griffon-swing-groovy sample
  </code></pre>
  
  <p>Then <code>$ cd sample</code> and <code>$ gradle build</code>.</p>
  
  <p>Unfortunately <code>$ gradle build</code> fails at <code>:compileGroovy</code> with the following errors:</p>
  
  <pre><code>error: SampleController does not implement griffon.core.artifact.GriffonController @griffon.metadata.ArtifactProviderFor(value=griffon.core.artifact.GriffonController.class) public class SampleController
  error: SampleModel does not implement griffon.core.artifact.GriffonModel @griffon.metadata.ArtifactProviderFor(value=griffon.core.artifact.GriffonModel.class) public class SampleModel
  error: SampleView does not implement griffon.core.artifact.GriffonView @griffon.metadata.ArtifactProviderFor(value=griffon.core.artifact.GriffonView.class) public class SampleView
  
  3 errors
  startup failed:
  Compilation failed; see the compiler error output for details.
  
  1 error
  
  :compileGroovy FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':compileGroovy'.
  &gt; Compilation failed; see the compiler error output for details.
  </code></pre>
  
  <p>I understand the actual meaning of the errors, but I wonder if there is something wrong with my setup, or whether the Tutorial is just faulty.</p>
  
  <p>Do you have any idea what's wrong and how I can fix it?</p>
  
  <p>UPDATE: It seems that <code>gradle v2.4</code> changes the way annotated code is compiled causing the build to fail. The solution is to downgrade <code>gradle</code> to <code>v2.2.1</code>.
  This issue is tracked on <a href="https://github.com/griffon/griffon/issues/68" rel="nofollow">github</a>.</p>
  
  <p>For those who might be interested, you can install multiple versions of <code>gradle</code> through <code>gvm</code> as follow:</p>
  
  <pre><code>$ gvm install gradle 2.2.1
  </code></pre>
  
  <p>If you want to see what versions are available (and which one is currently in use) issue the following command:</p>
  
  <pre><code>$ gvm list gradle
  </code></pre>
  
  <p>Thanks in advance,
  zxxz</p>