<div dir="ltr">Hi, <div>I did just did a test using this simple build.gradle </div><div><br></div><div><br></div><div><div>apply plugin: 'java'</div><div><br></div><div>sourceCompatibility = 1.5</div><div>version = '1.0'</div>
<div><br></div><div>repositories {</div><div> mavenCentral()</div><div>}</div><div><br></div><div>dependencies {</div><div> testCompile group: 'junit', name: 'junit', version: '4.11'</div><div>
compile "org.jboss.aerogear:unifiedpush-java-client:0.5.0"</div><div> compile "org.jboss.resteasy:resteasy-jackson-provider:2.3.2.Final"</div><div><br></div><div>}</div></div><div><br></div><div>
<br></div><div><br></div><div>And it can compile withou problems using this simple class : </div><div><br></div><div><br></div><div><br></div><div><div>import org.jboss.aerogear.unifiedpush.JavaSender;</div><div>import org.jboss.aerogear.unifiedpush.SenderClient;</div>
<div><br></div><div>public class SenderWrapper {</div><div><br></div><div><br></div><div> public void SenderWrapper() {</div><div> JavaSender defaultJavaSender =</div><div> new SenderClient("<a href="http://localhost:8080/ag-push">http://localhost:8080/ag-push</a>");</div>
<div> }</div><div>}</div></div><div><br></div><div><br></div><div><br></div><div>Are you sure that your gradle file has mavenCentral() enabled ? </div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, Mar 25, 2014 at 4:46 PM, oxsav <span dir="ltr"><<a href="mailto:vmfamaral@gmail.com" target="_blank">vmfamaral@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello. I'm trying to use the UPS Java Client in one of my Java Projects.<br>
<br>
As it says here:<br>
<a href="https://github.com/aerogear/aerogear-unifiedpush-java-client" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-java-client</a><br>
<br>
in maven it is just needed to add that dependencies to our project.<br>
<br>
My java project is being done in grade so I assume that in the dependencies<br>
I just need to use this:<br>
<br>
compile "org.jboss.aerogear:unifiedpush-java-client:0.5.0"<br>
compile "org.jboss.resteasy:resteasy-jackson-provider:2.3.2.Final"<br>
<br>
Right?<br>
<br>
Then when I try to import the libraries like this:<br>
<br>
import org.jboss.aerogear.unifiedpush.JavaSender;<br>
import org.jboss.aerogear.unifiedpush.SenderClient;<br>
import org.jboss.aerogear.unifiedpush.message.MessageResponseCallback;<br>
import org.jboss.aerogear.unifiedpush.message.UnifiedMessage;<br>
<br>
that doesn't recognize the org.jboss.aerogear.. Any idea?<br>
<br>
Thanks VA<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Unified-Push-Java-client-tp7087.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Unified-Push-Java-client-tp7087.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div>