<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building a Grails project with Gradle</title>
	<atom:link href="http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle</link>
	<description>A search for meaning in software and life</description>
	<lastBuildDate>Thu, 06 Oct 2011 21:33:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gradle on Grails &#171; alexcuesta</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1183</link>
		<dc:creator>Gradle on Grails &#171; alexcuesta</dc:creator>
		<pubDate>Tue, 21 Dec 2010 14:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1183</guid>
		<description>[...] to use Gradle because it looks really easy to read, so I gave it a go. My start point was this article by Peter Ledbrook but it was confusing because the build script contains errors. So after reading the comments, I [...]</description>
		<content:encoded><![CDATA[<p>[...] to use Gradle because it looks really easy to read, so I gave it a go. My start point was this article by Peter Ledbrook but it was confusing because the build script contains errors. So after reading the comments, I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastien Arbogast</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1181</link>
		<dc:creator>Sebastien Arbogast</dc:creator>
		<pubDate>Sat, 04 Dec 2010 16:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1181</guid>
		<description>I&#039;m trying to build an existing Grails 1.3.5 project with this gradle plugin.
I already had to add dependencies for slf4j and ehcache to make get
past a couple of exceptions but now I&#039;m having trouble with this one
when I run &quot;gradle grails-run-app&quot;:

Caused by: java.sql.SQLException: No suitable driver found for
jdbc:hsqldb:mem:grailsDB
       at java.sql.DriverManager.getConnection(DriverManager.java:602)
       at java.sql.DriverManager.getConnection(DriverManager.java:154)
       at $Proxy34.getMetaData(Unknown Source)

What I don&#039;t understand is why it&#039;s looking for hsqldb since my data
source is all mysql (from DataSource.groovy):

dataSource {
   pooled = false
   driverClassName = &quot;com.mysql.jdbc.Driver&quot;
}

Here is my build.gradle file:

buildscript {
   repositories {
       mavenCentral()
       mavenRepo urls: &quot;http://repository.jboss.org/maven2/&quot;
   }

   dependencies {
       classpath &quot;org.grails:grails-gradle-plugin:1.0&quot;,
                 &quot;org.grails:grails-bootstrap:1.3.5&quot;
   }
}

apply plugin: &quot;grails&quot;

repositories {
   mavenCentral()
   mavenRepo urls: &quot;http://repository.jboss.org/maven2/&quot;
}

dependencies {
   compile &quot;org.grails:grails-crud:1.3.5&quot;,
           &quot;org.grails:grails-gorm:1.3.5&quot;

   runtime &quot;org.slf4j:slf4j-log4j12:1.5.5&quot;,
           &quot;net.sf.ehcache:ehcache-core:1.7.1&quot;,
           &quot;mysql:mysql-connector-java:5.1.5&quot;
}

Did I miss something?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to build an existing Grails 1.3.5 project with this gradle plugin.<br />
I already had to add dependencies for slf4j and ehcache to make get<br />
past a couple of exceptions but now I&#8217;m having trouble with this one<br />
when I run &#8220;gradle grails-run-app&#8221;:</p>
<p>Caused by: java.sql.SQLException: No suitable driver found for<br />
jdbc:hsqldb:mem:grailsDB<br />
       at java.sql.DriverManager.getConnection(DriverManager.java:602)<br />
       at java.sql.DriverManager.getConnection(DriverManager.java:154)<br />
       at $Proxy34.getMetaData(Unknown Source)</p>
<p>What I don&#8217;t understand is why it&#8217;s looking for hsqldb since my data<br />
source is all mysql (from DataSource.groovy):</p>
<p>dataSource {<br />
   pooled = false<br />
   driverClassName = &#8220;com.mysql.jdbc.Driver&#8221;<br />
}</p>
<p>Here is my build.gradle file:</p>
<p>buildscript {<br />
   repositories {<br />
       mavenCentral()<br />
       mavenRepo urls: &#8220;http://repository.jboss.org/maven2/&#8221;<br />
   }</p>
<p>   dependencies {<br />
       classpath &#8220;org.grails:grails-gradle-plugin:1.0&#8243;,<br />
                 &#8220;org.grails:grails-bootstrap:1.3.5&#8243;<br />
   }<br />
}</p>
<p>apply plugin: &#8220;grails&#8221;</p>
<p>repositories {<br />
   mavenCentral()<br />
   mavenRepo urls: &#8220;http://repository.jboss.org/maven2/&#8221;<br />
}</p>
<p>dependencies {<br />
   compile &#8220;org.grails:grails-crud:1.3.5&#8243;,<br />
           &#8220;org.grails:grails-gorm:1.3.5&#8243;</p>
<p>   runtime &#8220;org.slf4j:slf4j-log4j12:1.5.5&#8243;,<br />
           &#8220;net.sf.ehcache:ehcache-core:1.7.1&#8243;,<br />
           &#8220;mysql:mysql-connector-java:5.1.5&#8243;<br />
}</p>
<p>Did I miss something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1180</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Mon, 08 Nov 2010 13:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1180</guid>
		<description>Hi Peter,
I&#039;m waiting for Gradle Artifactory Plugin support for http://issues.jfrog.org/jira/browse/GAP-35.

In the meantime I have to ask you another thing (maybe partially related to my previous comment about dependencies http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle#comment-1173):
Provided that I have a gradle script declaring only the following dependencies

dependencies {
    compile &quot;org.grails:grails-crud:1.3.4&quot;,
            &quot;org.grails:grails-gorm:1.3.4&quot;,
            &quot;org.springframework.security:spring-security-web:3.0.3.RELEASE&quot;,
            &quot;org.hibernate:hibernate-tools:3.2.4.GA&quot;

    runtime &quot;org.slf4j:slf4j-log4j12:1.5.8&quot;

}

I noticed that the war generated using the grails-gradle-plugin brings wrong versions for the included grails plugins.
For instance, my application.properties ha an entry like

plugins.jquery=1.4.2.5

and during the gradle script execution (from an Hudson job) I get

11:37:37  :grails-war
11:37:37  Running pre-compiled script
11:37:37  Environment set to production
11:37:38  Setting non-interactive mode
11:37:39  Plugin [gwt-0.5.1] not installed. ...
11:37:39  Plugin [app-info-0.3] not installed. ...
11:37:39  Plugin [smartgwt-0.1.1] not installed. ...
11:37:39  Plugin [dynamic-controller-0.2.1] not installed. ...
11:37:39  Plugin [hibernate-1.3.4] not installed. ...
11:37:39  Plugin [google-visualization-0.2.3] not installed. ...
11:37:39  Plugin [jquery-1.4.2.5] not installed. ...
11:37:39  Plugin [tomcat-1.3.4] not installed. ...
11:37:39  Plugin [spring-security-core-1.0.1] not installed. ...
11:37:39  Plugin [compress-0.4] not installed. ...
11:37:39  Resolving new plugins. Please wait... ...

from which you can see it claims the version 1.4.2.5 of jquery plugin (among others) is not installed. The problem is that it subsequently downloads version 1.4.3.2 as you can see here

11:37:46  Plugin dependency [jquery] not found. Attempting to resolve... ...
11:37:46  Resolving plugin jquery. Please wait...
11:37:46  
11:37:50  Downloading: http://svn.codehaus.org/grails-plugins/grails-jquery/tags/RELEASE_1_4_3_2/grails-jquery-1.4.3.2.zip ...
11:37:52  Download complete.
11:37:53  Installing zip /home/tomcat/.ivy2/cache/org.grails.plugins/jquery/zips/jquery-1.4.3.2.zip... ...
11:37:53      [mkdir] Created dir: /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2
11:37:53  
11:37:53      [unzip] Expanding: /home/tomcat/.ivy2/cache/org.grails.plugins/jquery/zips/jquery-1.4.3.2.zip into /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2
11:37:53  
11:37:53  Installed plugin jquery-1.4.3.2 to location /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2. ...
11:37:53  Executing jquery-1.4.3.2 plugin post-install script ...
11:37:53  Plugin jquery-1.4.3.2 installed

The question is: Why it uses another version for the jquery plugin?</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
I&#8217;m waiting for Gradle Artifactory Plugin support for <a href="http://issues.jfrog.org/jira/browse/GAP-35" rel="nofollow">http://issues.jfrog.org/jira/browse/GAP-35</a>.</p>
<p>In the meantime I have to ask you another thing (maybe partially related to my previous comment about dependencies <a href="http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle#comment-1173)" rel="nofollow">http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle#comment-1173)</a>:<br />
Provided that I have a gradle script declaring only the following dependencies</p>
<p>dependencies {<br />
    compile &#8220;org.grails:grails-crud:1.3.4&#8243;,<br />
            &#8220;org.grails:grails-gorm:1.3.4&#8243;,<br />
            &#8220;org.springframework.security:spring-security-web:3.0.3.RELEASE&#8221;,<br />
            &#8220;org.hibernate:hibernate-tools:3.2.4.GA&#8221;</p>
<p>    runtime &#8220;org.slf4j:slf4j-log4j12:1.5.8&#8243;</p>
<p>}</p>
<p>I noticed that the war generated using the grails-gradle-plugin brings wrong versions for the included grails plugins.<br />
For instance, my application.properties ha an entry like</p>
<p>plugins.jquery=1.4.2.5</p>
<p>and during the gradle script execution (from an Hudson job) I get</p>
<p>11:37:37  :grails-war<br />
11:37:37  Running pre-compiled script<br />
11:37:37  Environment set to production<br />
11:37:38  Setting non-interactive mode<br />
11:37:39  Plugin [gwt-0.5.1] not installed. &#8230;<br />
11:37:39  Plugin [app-info-0.3] not installed. &#8230;<br />
11:37:39  Plugin [smartgwt-0.1.1] not installed. &#8230;<br />
11:37:39  Plugin [dynamic-controller-0.2.1] not installed. &#8230;<br />
11:37:39  Plugin [hibernate-1.3.4] not installed. &#8230;<br />
11:37:39  Plugin [google-visualization-0.2.3] not installed. &#8230;<br />
11:37:39  Plugin [jquery-1.4.2.5] not installed. &#8230;<br />
11:37:39  Plugin [tomcat-1.3.4] not installed. &#8230;<br />
11:37:39  Plugin [spring-security-core-1.0.1] not installed. &#8230;<br />
11:37:39  Plugin [compress-0.4] not installed. &#8230;<br />
11:37:39  Resolving new plugins. Please wait&#8230; &#8230;</p>
<p>from which you can see it claims the version 1.4.2.5 of jquery plugin (among others) is not installed. The problem is that it subsequently downloads version 1.4.3.2 as you can see here</p>
<p>11:37:46  Plugin dependency [jquery] not found. Attempting to resolve&#8230; &#8230;<br />
11:37:46  Resolving plugin jquery. Please wait&#8230;<br />
11:37:46<br />
11:37:50  Downloading: <a href="http://svn.codehaus.org/grails-plugins/grails-jquery/tags/RELEASE_1_4_3_2/grails-jquery-1.4.3.2.zip" rel="nofollow">http://svn.codehaus.org/grails-plugins/grails-jquery/tags/RELEASE_1_4_3_2/grails-jquery-1.4.3.2.zip</a> &#8230;<br />
11:37:52  Download complete.<br />
11:37:53  Installing zip /home/tomcat/.ivy2/cache/org.grails.plugins/jquery/zips/jquery-1.4.3.2.zip&#8230; &#8230;<br />
11:37:53      [mkdir] Created dir: /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2<br />
11:37:53<br />
11:37:53      [unzip] Expanding: /home/tomcat/.ivy2/cache/org.grails.plugins/jquery/zips/jquery-1.4.3.2.zip into /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2<br />
11:37:53<br />
11:37:53  Installed plugin jquery-1.4.3.2 to location /mnt/workspace/jobs/myjob/workspace/build/plugins/jquery-1.4.3.2. &#8230;<br />
11:37:53  Executing jquery-1.4.3.2 plugin post-install script &#8230;<br />
11:37:53  Plugin jquery-1.4.3.2 installed</p>
<p>The question is: Why it uses another version for the jquery plugin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1177</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Fri, 29 Oct 2010 09:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1177</guid>
		<description>Hi Peter, thanks for your quick replies.
I&#039;ve found some threads dealing with the task of exposing the produced artifacts:
- http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755
- http://gradle.1045684.n5.nabble.com/Migrating-multi-module-ant-build-to-gradle-howto-declare-built-artifacts-td1432137.html

and till now I&#039;ve understood that I can add artifacts using the API (instead of the DSL), and the artifactory plugin identifies the gradle output artifacts using the configuration of its &#039;buildInfo&#039; task, as you can see from the following snippets I extracted from the plugin sources (org.jfrog.build.extractor.gradle.GradleBuildInfoExtractor)
...
BuildInfoRecorderTask birTask = (BuildInfoRecorderTask) subProject.getTasks().getByName(&quot;buildInfo&quot;);
...
//the the calculateArtifacts is called passing birTask.getConfiguration()
...
    private List calculateArtifacts(Configuration configuration, Project project) throws Exception {
        List artifacts = newArrayList(
                transform(configuration.getAllArtifacts(), new Function() {
                    public Artifact apply(PublishArtifact from) {
...


Hence I&#039;ve written a task such this

task publishWar(
//commented only to reduce the overall build time
/*dependsOn: &quot;grails-war&quot;*/
) {
	configurations.add &quot;buildInfo&quot;
	configurations.buildInfo.addArtifact(new DefaultPublishArtifact(&quot;myWar&quot;, &quot;war&quot;, &quot;war&quot;, null, new Date(), file(&#039;target/myWar.war&#039;)))
	configurations.each {conf-&gt;
		println &quot;conf: ${conf}&quot;
		conf.artifacts.each {artifact-&gt;
			println &quot;  artifact: ${artifact}&quot;
		}
	}
}

that produces the following log:

10:30:13 conf: configuration &#039;:buildInfo&#039; 
10:30:13 artifact: DefaultPublishArtifact CustomerDemand:war:war:null 
10:30:13 conf: configuration &#039;:compile&#039; 
10:30:13 conf: configuration &#039;:grails_bootstrap&#039; 
10:30:13 conf: configuration &#039;:runtime&#039; 
10:30:13 conf: configuration &#039;:test&#039; 
10:30:13 :publishWar UP-TO-DATE
10:30:14 :buildInfo 

but the file still isn&#039;t uploaded... maybe the &quot;buildInfo&quot; configuration I&#039;ve added on the fly is overwritten by the &quot;buildInfo&quot; task.
Yesterday I asked on the gradle mailing list http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755
and I&#039;m waiting for a response.
I&#039;ve also just added a comment on the artifactory wiki http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin?focusedCommentId=14811595#comment-14811595
If necessary I will start a new thread on gradle mailing list.

Thank you
Davide</description>
		<content:encoded><![CDATA[<p>Hi Peter, thanks for your quick replies.<br />
I&#8217;ve found some threads dealing with the task of exposing the produced artifacts:<br />
- <a href="http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755" rel="nofollow">http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755</a><br />
- <a href="http://gradle.1045684.n5.nabble.com/Migrating-multi-module-ant-build-to-gradle-howto-declare-built-artifacts-td1432137.html" rel="nofollow">http://gradle.1045684.n5.nabble.com/Migrating-multi-module-ant-build-to-gradle-howto-declare-built-artifacts-td1432137.html</a></p>
<p>and till now I&#8217;ve understood that I can add artifacts using the API (instead of the DSL), and the artifactory plugin identifies the gradle output artifacts using the configuration of its &#8216;buildInfo&#8217; task, as you can see from the following snippets I extracted from the plugin sources (org.jfrog.build.extractor.gradle.GradleBuildInfoExtractor)<br />
&#8230;<br />
BuildInfoRecorderTask birTask = (BuildInfoRecorderTask) subProject.getTasks().getByName(&#8220;buildInfo&#8221;);<br />
&#8230;<br />
//the the calculateArtifacts is called passing birTask.getConfiguration()<br />
&#8230;<br />
    private List calculateArtifacts(Configuration configuration, Project project) throws Exception {<br />
        List artifacts = newArrayList(<br />
                transform(configuration.getAllArtifacts(), new Function() {<br />
                    public Artifact apply(PublishArtifact from) {<br />
&#8230;</p>
<p>Hence I&#8217;ve written a task such this</p>
<p>task publishWar(<br />
//commented only to reduce the overall build time<br />
/*dependsOn: &#8220;grails-war&#8221;*/<br />
) {<br />
	configurations.add &#8220;buildInfo&#8221;<br />
	configurations.buildInfo.addArtifact(new DefaultPublishArtifact(&#8220;myWar&#8221;, &#8220;war&#8221;, &#8220;war&#8221;, null, new Date(), file(&#8216;target/myWar.war&#8217;)))<br />
	configurations.each {conf-&gt;<br />
		println &#8220;conf: ${conf}&#8221;<br />
		conf.artifacts.each {artifact-&gt;<br />
			println &#8221;  artifact: ${artifact}&#8221;<br />
		}<br />
	}<br />
}</p>
<p>that produces the following log:</p>
<p>10:30:13 conf: configuration &#8216;:buildInfo&#8217;<br />
10:30:13 artifact: DefaultPublishArtifact CustomerDemand:war:war:null<br />
10:30:13 conf: configuration &#8216;:compile&#8217;<br />
10:30:13 conf: configuration &#8216;:grails_bootstrap&#8217;<br />
10:30:13 conf: configuration &#8216;:runtime&#8217;<br />
10:30:13 conf: configuration &#8216;:test&#8217;<br />
10:30:13 :publishWar UP-TO-DATE<br />
10:30:14 :buildInfo </p>
<p>but the file still isn&#8217;t uploaded&#8230; maybe the &#8220;buildInfo&#8221; configuration I&#8217;ve added on the fly is overwritten by the &#8220;buildInfo&#8221; task.<br />
Yesterday I asked on the gradle mailing list <a href="http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755" rel="nofollow">http://gradle.1045684.n5.nabble.com/Creating-and-populating-new-configurations-td1435748.html#a3240755</a><br />
and I&#8217;m waiting for a response.<br />
I&#8217;ve also just added a comment on the artifactory wiki <a href="http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin?focusedCommentId=14811595#comment-14811595" rel="nofollow">http://wiki.jfrog.org/confluence/display/RTF/Gradle+Artifactory+Plugin?focusedCommentId=14811595#comment-14811595</a><br />
If necessary I will start a new thread on gradle mailing list.</p>
<p>Thank you<br />
Davide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1176</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 29 Oct 2010 07:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1176</guid>
		<description>On the war front, I&#039;m not sure what needs to be done because I don&#039;t know how the &#039;artifacts {}&#039; declaration works. I suggest you ask on the Gradle mailing list. Perhaps you just need to specify the task &#039;assemble&#039; or &#039;grails-war&#039; as the source of the archive? Someone on the Gradle list should be able to give us a starting point.</description>
		<content:encoded><![CDATA[<p>On the war front, I&#8217;m not sure what needs to be done because I don&#8217;t know how the &#8216;artifacts {}&#8217; declaration works. I suggest you ask on the Gradle mailing list. Perhaps you just need to specify the task &#8216;assemble&#8217; or &#8216;grails-war&#8217; as the source of the archive? Someone on the Gradle list should be able to give us a starting point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1175</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 29 Oct 2010 07:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1175</guid>
		<description>It wouldn&#039;t be possible to guess the dependencies because the build wouldn&#039;t know what should be included in the project and what not. Not all Grails applications would need GORM for example. What if you wanted to use logback rather than log4j? What the plugin could do is provide a default set of dependencies for a straightforward Grails application with HSQLDB and log4j. That would probably help.

I need to get back to you on the WAR question.</description>
		<content:encoded><![CDATA[<p>It wouldn&#8217;t be possible to guess the dependencies because the build wouldn&#8217;t know what should be included in the project and what not. Not all Grails applications would need GORM for example. What if you wanted to use logback rather than log4j? What the plugin could do is provide a default set of dependencies for a straightforward Grails application with HSQLDB and log4j. That would probably help.</p>
<p>I need to get back to you on the WAR question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1174</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Thu, 28 Oct 2010 13:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1174</guid>
		<description>Hi Peter, I have another question:
how can I expose some info - in the &quot;gradle way&quot; - about the generated war? (see http://www.gradle.org/latest/docs/userguide/artifact_management.html)

Let me explain:
I&#039;ve configured an Artifactory, an Hudson CI and linked them with the needed plugins (http://wiki.hudson-ci.org/display/HUDSON/Gradle+Plugin http://wiki.jfrog.org/confluence/display/RTF/Hudson+Artifactory+Plug-in http://wiki.hudson-ci.org/display/HUDSON/Artifactory+Plugin) but using a free-style job based on a gradle script that uses the grails-gradle-plugin I miss a declaration to let the gradle-artifactory plugin upload them to artifactory... something like 
artifacts {archives ...}

In other words hudson doesn&#039;t upload to artifactory the gradle-generated war cause (I suppose) gradle doesn&#039;t know about it (since it is built through grails&#039; build system).

Kind regards
Davide</description>
		<content:encoded><![CDATA[<p>Hi Peter, I have another question:<br />
how can I expose some info &#8211; in the &#8220;gradle way&#8221; &#8211; about the generated war? (see <a href="http://www.gradle.org/latest/docs/userguide/artifact_management.html)" rel="nofollow">http://www.gradle.org/latest/docs/userguide/artifact_management.html)</a></p>
<p>Let me explain:<br />
I&#8217;ve configured an Artifactory, an Hudson CI and linked them with the needed plugins (<a href="http://wiki.hudson-ci.org/display/HUDSON/Gradle+Plugin" rel="nofollow">http://wiki.hudson-ci.org/display/HUDSON/Gradle+Plugin</a> <a href="http://wiki.jfrog.org/confluence/display/RTF/Hudson+Artifactory+Plug-in" rel="nofollow">http://wiki.jfrog.org/confluence/display/RTF/Hudson+Artifactory+Plug-in</a> <a href="http://wiki.hudson-ci.org/display/HUDSON/Artifactory+Plugin)" rel="nofollow">http://wiki.hudson-ci.org/display/HUDSON/Artifactory+Plugin)</a> but using a free-style job based on a gradle script that uses the grails-gradle-plugin I miss a declaration to let the gradle-artifactory plugin upload them to artifactory&#8230; something like<br />
artifacts {archives &#8230;}</p>
<p>In other words hudson doesn&#8217;t upload to artifactory the gradle-generated war cause (I suppose) gradle doesn&#8217;t know about it (since it is built through grails&#8217; build system).</p>
<p>Kind regards<br />
Davide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1173</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Thu, 28 Oct 2010 12:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1173</guid>
		<description>Sorry Peter, I&#039;ve been too vague.
I&#039;d mean it would be useful if the plugin could somewhat &quot;guess&quot; the dependencies instead of having to add them into the script.
I actually ended up declaring the following dependencies for my grails project (after some attempts):

dependencies {
    compile &quot;org.grails:grails-crud:1.3.4&quot;,
            &quot;org.grails:grails-gorm:1.3.4&quot;,
            &quot;org.springframework.security:spring-security-web:3.0.3.RELEASE&quot;,
            &quot;org.hibernate:hibernate-tools:3.2.4.GA&quot;

    runtime &quot;org.slf4j:slf4j-log4j12:1.5.8&quot;

}

Since they are all listed (among many others) in the ivy report generated by grails, I was trying to figure out if that data (maybe ivy internals?) could be used to provide an automatic &quot;dependencies&quot; declaration.

Kind regards
Davide</description>
		<content:encoded><![CDATA[<p>Sorry Peter, I&#8217;ve been too vague.<br />
I&#8217;d mean it would be useful if the plugin could somewhat &#8220;guess&#8221; the dependencies instead of having to add them into the script.<br />
I actually ended up declaring the following dependencies for my grails project (after some attempts):</p>
<p>dependencies {<br />
    compile &#8220;org.grails:grails-crud:1.3.4&#8243;,<br />
            &#8220;org.grails:grails-gorm:1.3.4&#8243;,<br />
            &#8220;org.springframework.security:spring-security-web:3.0.3.RELEASE&#8221;,<br />
            &#8220;org.hibernate:hibernate-tools:3.2.4.GA&#8221;</p>
<p>    runtime &#8220;org.slf4j:slf4j-log4j12:1.5.8&#8243;</p>
<p>}</p>
<p>Since they are all listed (among many others) in the ivy report generated by grails, I was trying to figure out if that data (maybe ivy internals?) could be used to provide an automatic &#8220;dependencies&#8221; declaration.</p>
<p>Kind regards<br />
Davide</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1172</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 24 Oct 2010 13:36:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1172</guid>
		<description>Sorry, I don&#039;t understand the suggestion. Do you mean that the dependency reports should include plugin dependencies? If so, yes the reports should. Someone at SpringOne 2GX said that they would raise an issue for that if one didn&#039;t already exist.</description>
		<content:encoded><![CDATA[<p>Sorry, I don&#8217;t understand the suggestion. Do you mean that the dependency reports should include plugin dependencies? If so, yes the reports should. Someone at SpringOne 2GX said that they would raise an issue for that if one didn&#8217;t already exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Cavestro</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/building-a-grails-project-with-gradle/comment-page-1#comment-1169</link>
		<dc:creator>Davide Cavestro</dc:creator>
		<pubDate>Thu, 21 Oct 2010 14:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=196#comment-1169</guid>
		<description>Would it make sense some sort of automatic retrieving of plugins dependencies from the grails dependency-report? (if feasible)</description>
		<content:encoded><![CDATA[<p>Would it make sense some sort of automatic retrieving of plugins dependencies from the grails dependency-report? (if feasible)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

