Note that it's also possible to use GitHub as an m2 repository of sorts…
mavenRepo (name: "Alkemist's GitHub", urls:
"http://cloud.github.com/downloads/alkemist") {
pattern = "[organisation]/[module]-[revision].[ext]"
}
One caveat is that the organisation can't contain any periods, because the Ivy
class for M2 repos expands them out to be path separators.
The advantage of doing this is that you can publish a .pom alongside your
artifact to enable transitive dependency resolution.
On 20/06/2011, at 7:34 AM, Benjamin Muschko wrote:
>
> Great, that works. Thanks for pointing this out.
>
> Ben
>
>
> Peter Niederwieser wrote:
>>
>>
>> Benjamin Muschko wrote:
>>>
>>> Any ideas why it can't be found?
>>>
>>
>> "def gitHub = ..." creates a local variable. You have to do "gitHub = ..."
>> instead.
>>
>> --
>> Peter Niederwieser
>> Principal Engineer, Gradleware
>> http://gradleware.com
>> Creator, Spock Framework
>> http://spockframework.org
>>
>> Please vote Gradle for JAX Awards: http://vote.jax-awards.com
>>
>>
>>
>> --
>> View this message in context:
>> http://gradle.1045684.n5.nabble.com/Define-repository-similar-to-mavenCentral-within-build-script-tp4503651p4504379.html
>> Sent from the gradle-user mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Define-repository-similar-to-mavenCentral%28%29-within-build-script-tp31879861p31881488.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
Please vote Gradle for JAX Awards » http://vote.jax-awards.com
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email