<div dir="ltr">Hey Max, <div><br></div><div>I don&#39;t think that he meant there was a difference in test speet bewteen build/eclipse. Just that the first test run (from anywhere) takes longer because it is downloading and caching files. Subsequent tests run faster.<div>
<br></div><div>Regarding the information that can&#39;t be resolved from the gradle tooling API, there is quite a bit, such as it&#39;s impossible to get dependency information without doing what adam has done! Silly - hardly a &quot;tooling API&quot; if you ask me!</div>
<div><br></div><div>Take a look at the file adam linked. That shows pretty much everything that gradle does not provide I think, but Adam can give a more comprehensive list.  </div></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Wed, Aug 21, 2013 at 3:21 AM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:manderse@redhat.com" target="_blank">manderse@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Aug 20, 2013 at 03:29:46PM +0200, Adam Wyłuda wrote:<br>
&gt;Hey Max,<br>
&gt;<br>
&gt;I usually run it with Eclipse and first run of Gradle takes about 5<br>
&gt;seconds, I think that Gradle caches build files and that&#39;s why it works<br>
&gt;faster after that, but for every test new project is created so why it<br>
&gt;always takes so much.<br>
<br>
</div>not following - eclipse caches build files too; it doesn&#39;t need to build anything<br>
so why would gradle be faster to run the arquillian tests than eclipse ?<br>
Maybe I misunderstood your initial comment...just read it as arquillian became<br>
faster to run because it was using gradle...which might be true - but just trying<br>
to grok what magic it does (caching build files can&#39;t be the answer since eclipse does<br>
that too and just launches the vm with junit which triggers arquillian).<br>
<div class="im"><br>
&gt;I think the solution for this may be installing forge.gradle in<br>
&gt;user/.gradle directory, so it will compiled only once, which will result in<br>
&gt;better test performance.<br>
&gt;<br>
&gt;About forge.gradle, it is library adding non-standard functionality to<br>
&gt;Gradle, which is used in Maven and project facets requires that, like<br>
&gt;profiles, setting archive name and managed/direct dependency support. Also<br>
&gt;it adds forgeOutput task which is used by addon to read effective project<br>
&gt;model (evaluated by running Gradle). In future if Gradle tooling API<br>
&gt;supports that we could remove it, but for now there is no better way to get<br>
&gt;information about the Gradle project. You can find forge.gradle contents<br>
&gt;here:<br>
&gt;<a href="https://github.com/forge/addon-gradle/blob/master/impl/src/main/resources/forge.gradle" target="_blank">https://github.com/forge/addon-gradle/blob/master/impl/src/main/resources/forge.gradle</a><br>
<br>
</div>ah okey interesting - and yeah, this is example of what eclipse would need too...<br>
the gradle eclipse plugin uses the tooling api afaik (albeit very slow last time I looked).<br>
<br>
What are the specifics you can&#39;t get from gradle tooling api ?<br>
<br>
/max<br>
<div><div class="h5"><br>
&gt;<br>
&gt;<br>
&gt;2013/8/20 Max Rydahl Andersen &lt;<a href="mailto:manderse@redhat.com">manderse@redhat.com</a>&gt;<br>
&gt;<br>
&gt;&gt; ...cool - how is your arquillian test run done ? just run junit from<br>
&gt;&gt; eclipse or run via gradle or how ?<br>
&gt;&gt; Just wondering what makes a difference here since maven aren&#39;t involved in<br>
&gt;&gt; a arqullian test run from eclipse.<br>
&gt;&gt;<br>
&gt;&gt; and what is forge.gradle ?<br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Aug 19, 2013 at 08:34:50PM -0400, Lincoln Baxter, III wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Adam,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; AWESOME! And congratulations :) This is EXCELLENT!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am very excited about this. Unfortunately, my work day just ended (after<br>
&gt;&gt;&gt; about 11 hours,) so I need to take a break, but I will try this out<br>
&gt;&gt;&gt; tomorrow.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I wonder, does the Gradle eclipse plugin work well enough to resolve<br>
&gt;&gt;&gt; dependencies and compile the java file?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Again - Thrilled,<br>
&gt;&gt;&gt; ~Lincoln<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Mon, Aug 19, 2013 at 8:29 PM, Adam Wyłuda &lt;<a href="mailto:adamwyl92@gmail.com">adamwyl92@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I&#39;d like to present you first screenshot of working project creation with<br>
&gt;&gt;&gt;&gt; Gradle addon.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; As you could see there are three text editors showing important aspects<br>
&gt;&gt;&gt;&gt; of<br>
&gt;&gt;&gt;&gt; this experiment:<br>
&gt;&gt;&gt;&gt; - build.gradle - created by Gradle facets, also updated by JPA - Setup<br>
&gt;&gt;&gt;&gt; Forge command (which added managed dependency, but Eclipse log shows it<br>
&gt;&gt;&gt;&gt; couldn&#39;t resolve something)<br>
&gt;&gt;&gt;&gt; - MyEntity.java - class generated using JPA - New entity option<br>
&gt;&gt;&gt;&gt; - pom.xml - I don&#39;t know how it got here, but I&#39;m sure it is not used, as<br>
&gt;&gt;&gt;&gt; Eclipse log shows that Gradle is being run to obtain info about project<br>
&gt;&gt;&gt;&gt; (and very interesting thing - performance is much better than in<br>
&gt;&gt;&gt;&gt; Arquillian<br>
&gt;&gt;&gt;&gt; tests, for each Gradle run it seems to take only about 0.3 seconds)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Project build file was entirely created and modified using only Gradle<br>
&gt;&gt;&gt;&gt; facets (if you don&#39;t believe you can pull latest version and check it<br>
&gt;&gt;&gt;&gt; yourself :)).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Screenshot:<br>
&gt;&gt;&gt;&gt; [image: Obraz w treści 1]<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Lincoln Baxter, III<br>
&gt;&gt;&gt; <a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>
&gt;&gt;&gt; &quot;Simpler is better.&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
</div></div>&gt;&gt;  ______________________________**_________________<br>
&gt;&gt;&gt; forge-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/**mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/**mailman/listinfo/forge-dev</a>&lt;<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a>&gt;<br>

<div class="HOEnZb"><div class="h5">&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Lincoln Baxter, III<br>
<a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>&quot;Simpler is better.&quot;
</div>