title: How to connect importMappings and yaml in Swagger
body: <p>I have Spring RESTfull application and I want to generate an API for it. I use a gradle configuration from there <a href="https://github.com/Casturan/swagger-gradle-example/blob/master/build.gradle" rel="nofollow noreferrer">https://github.com/Casturan/swagger-gradle-example/blob/master/build.gradle</a> to generate code. But there is problem it uses models defined in <code>definitions:</code> while I want it to use my models from shared module. I found that I need to use importMapping but when I try to apply this command in my build.gradle I am getting an error:</p>
  
  <pre><code>importMappings = [
     'board_container': 'board_container=com.workingbit.share.domain.impl.BoardContainer'
  ]
  &gt; Could not set unknown property 'importMappings' for task ':myproject:generateApi' of type org.gradle.api.DefaultTask.
  </code></pre>
  
  <p>So question how to use <code>importMapping</code> and how to connect it with my model in <code>yaml</code>?</p>