Liferay 7 service module Unresolved requiremen
<p>I am developing some features for Liferay 7. I know is still in beta version but I am facing some troubles with OSGi package dependencies. When I am trying to deploy service project an error occurred while deploying</p>

<blockquote>
  <p>Unresolved requirement: Import-Package: com.liferay.asset.kernel.model; version="[1.0.0,2.0.0)"</p>
</blockquote>

<p>Anda the same happens with other like expando import packages. </p>

<p>The question is that in my Eclipse Mars there is no error and in Dependencies I can find that clases inside the Jar com.liferay.portal.kernel and I don't know why is throwing that error.</p>

<p>In my build.gradle I have this dependence </p>

<blockquote>
  <p>compile 'com.liferay.portal:com.liferay.portal.kernel:2.1.0'</p>
</blockquote>

<p>My bnd file contains the next: </p>

<pre><code> Bundle-Version: 1.0.0 
Liferay-Service: true
Require-Capability: liferay.extender;filter:="(&amp;(liferay.extender=spring.extender)(version&gt;=1.0)(!(version&gt;=3.0)))"
Liferay-Require-SchemaVersion: 1.0.0
Liferay-Spring-Context: META-INF/spring
-sources: true
Import-Package: \
    com.liferay.portal.service;version="7.0.0",\
    com.liferay.portal.kernel;version='2.1.0',\
    org.osgi.framework;version="[1.7,2)",\
    *
</code></pre>

<p>Anybody knows where to look where are those runtime dependencies limiting to 1.0.0 to 2.0.0?</p>

<p>Any help will be welcome because I am loosing a lot of time and I am really beginner in this.</p>

<p>I think I am managing with this but a new problem appears... When I do a buildService in my service project it creates all stuff but the problem is it create wrong in SqlUpdateFactoryUtil, parameters given are not the same as API for 7.0 so the error thrown is: </p>

<pre><code>SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
                                                      ^
  required: DataSource,String,int[]
  found: DataSource,String
  reason: actual and formal argument lists differ in length
</code></pre>

<p>So I guess that the service builder plugin is not sync with the version of my jars</p>