title: Play Framework 1.2: How to add custom module dependencies
body: <p>I'm a bit lost in a migration to Play 1.2. We have a set of custom
  modules in our application. In Play 1.1.1 we used this structure:</p>
  
  <pre><code>/root/
    /module1
    /module2
    ...
    /moduleN
    /main app
  </code></pre>
  
  <p>And application.conf referenced the modules as a relative path <em>(../
  module1)</em></p>
  
  <p>How can I do the same in Play 1.2? I see I should use the
  <em>dependencies.yml</em> file, but can't find any information on this topic in
  the official documentation.</p>
  
  <p>Thanks in advance </p>
  
  <p><strong>EDIT:</strong> 
  There is a lot of mixed information in the Google Group, but <a href="http://groups.google.com/group/play-framework/msg/0187ab09586d4920" rel="nofollow">this post</a> solved the issues.</p>
  
  <p>I copy it here to provide future reference for people searching this issue in SO:</p>
  
  <blockquote>
    <p>Ok, using the latest from master, here the needed dependencies.yml
    with comments inline:</p>
  </blockquote>
  
  <pre><code># Application dependencies
  
  # Notes:
  #   play is an alias for play -&gt; play $currentVersion
  #   play -&gt; crud is an alias for play -&gt; crud $currentVersion
  #   play -&gt; secure is an alias for play -&gt; secure $currentVersion
  #   Modules from the main repository use 'play' as organisation
  #
  
  require:
      - play
      - play -&gt; crud
      - play -&gt; secure
      - play -&gt; recaptcha 1.02
      - play -&gt; greenscript 1.2b
      - crionics -&gt; cms 1.0
      - ugot -&gt; widgets 1.0
      - org.markdownj -&gt; markdownj 0.3.0-1.0.2b4
  
  repositories:
  
      - Scala Tools:
          type:       iBiblio
          root:       http://scala-tools.org/repo-releases/
          contains:
              - org.markdownj
  
      - My modules:
          type:       local
          artifact:   /somewhere/on/your/disk/[organisation]/[module]-[revision]
  
          # This folder must contain
          # /somewhere/on/your/disk/crionics/cms-1.0
          # /somewhere/on/your/disk/ugot/widgets-1.0
  
          contains:
              - ugot
              - crionics 
  </code></pre>
  
  <p><strong>NOTE:</strong> be aware that if you do something wrong with the local repository settings you risk deleting your project (completely!) when running <em>play deps</em> . Yes, it happened to me :(</p>