No timeframe yet. But that should be very easy to implement as a
script plugin. Either by porting the maven plugin. Or by using Ant
tasks.

Hans

On Thursday, March 11, 2010, Nacho Coloma <[email protected]> wrote:
> Any timeframe for that? I am supposing I should prepare a manual way
> of invoking a gradle plugin, or maybe translate the plugin itself into
> a script (if such a thing is possible)
>
> On Thu, Mar 11, 2010 at 2:39 PM, Hans Dockter <[email protected]> wrote:
>>
>>
>> On Sat, Mar 6, 2010 at 8:59 PM, Nacho Coloma <[email protected]> wrote:
>>>
>>> I found some time to test this according to instructions found here.
>>>
>>> http://www.sonatype.com/people/2010/01/how-to-generate-pgp-signatures-with-maven/
>>>
>>> At the end of this post you will find working instructions to generate
>>> a complete POM. It works fine, but I am having problems to execute the
>>> gpg plugin. According to the link, this is what would be needed:
>>>
>>>        // pgp
>>>        def pgpPlugin = new org.apache.maven.model.Plugin(
>>>                groupId: 'org.apache.maven.plugins',
>>>                artifactId: 'maven-gpg-plugin'
>>>        )
>>>        def pluginExecution = new
>>> org.apache.maven.model.PluginExecution(id: 'sign-artifacts', phase:
>>> 'verify')
>>>        pluginExecution.addGoal 'sign'
>>>        pgpPlugin.addExecution pluginExecution
>>>        mp.addPlugin pgpPlugin
>>>
>>> Obviously this doesn't work, since maven is not executing any
>>> configured plugins (and I don't think it should). That means that I
>>> need a way to configure and execute a maven plugin in gradle, and
>>> could find no documented way of doing so. Any help?
>>
>> Gradle does not provide any special support for executing Maven plugins yet.
>> May be with the Maven 3 based import that is in the work we will offer
>> something for that.
>>
>> - Hans
>>
>> --
>> Hans Dockter
>> Founder, Gradle
>> http://www.gradle.org, http://twitter.com/gradleorg
>> CEO, Gradle Inc. - Gradle Training, Support, Consulting
>> http://www.gradle.biz
>>
>>
>>>
>>> -- Nacho.
>>>
>>> ===
>>>
>>> * gradle.properties:
>>>
>>> description=Blah, blah blah...
>>> projectUrl=http://code.google.com/p/simpleds/
>>>
>>> nexusSnapshotUploadUrl=http://oss.sonatype.org/nexus/content/repositories/snapshots
>>>
>>> nexusReleaseUploadUrl=http://oss.sonatype.org/nexus/content/repositories/releases
>>> scmBrowseUrl=http://code.google.com/p/simpleds/source/browse/
>>> scmUrl=scm:svn:http://simpleds.googlecode.com/svn/trunk/
>>> nexusUsername=<your username>
>>>
>>> * ~/.gradle/gradle.properties
>>>
>>> nexusPassword=<your password>
>>>
>>> * build.gradle:
>>>
>>> repositories.mavenDeployer {
>>>                // pom elements
>>>                pom.name = project.name
>>>                pom.description = project.description
>>>                pom.url = project.projectUrl
>>>                def mp = pom.mavenProject
>>>                mp.addLicense new org.apache.maven.model.License(
>>>                        name: 'The Apache Software License, Version 2.0',
>>>                        url:
>>> ' <http://www.apache.org/licenses/LICENSE-2.0.txt>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to