do you mean "uploadArchives" ? Couldnt find anything about upload task...

for uploadArchives I found:

uploadArchives {
    repositories.mavenDeployer {
        repository(url: "file://localhost/tmp/myRepo/")
    }
}

but again - if I enter any path as URL and call 'gradle build
uploadArchives' it installs into the user.home directory (but now with
remote information and not only locale).

?!


Paul Speed-2 wrote:
> 
> I'm no expert by any means, but when I want to upload to a maven 
> repository I use "gradle upload"...
> 
> -Paul
> 
> MartyMcFly wrote:
>> Hi,
>> 
>> I want to install my jars into a local maven repository. But whatever I
>> give
>> as location it always puts it into my user.home.
>> 
>> repositories { 
>>  def tmp = new File(System.getProperty('java.io.tmpdir'),
>> '.m2/repository')
>>  mavenRepo urls: 'file://' + tmp.absolutePath
>> }
>> 
>> but starting with -i shows:
>> 
>> [INFO] Installing
>> D:\gradle-test\code\support\build\libs\support-SNAPSHOT.jar C:\Dokumente
>> und
>> Einstellungen\user\.m2\repository\de\acme\code\support\SNAPSHOT\support-SNAPSHOT.jar
>> 
>> The first time i ran it i had user.home as location... but why does it
>> remember it and how is it changeable ?
>> 
>> The actual problem is that i wanted to use that jar in a separate
>> project.
>> 
>> repositories { 
>>        mavenRepo urls: 'file://' + new File(System.getProperty('user.home'),
>> '.m2/repository').absolutePath
>> }
>> 
>> dependencies {
>>   compile 'de.acme.code:support:SNAPSHOT'
>> }
>> 
>> this fails with:
>> 
>> file://C:\Dokumente und
>> Einstellungen\user\.m2\repository/de/acme/code/support/SNAPSHOT/API-SNAPSHOT.jar
>> 
>> UNRESOLVED DEPENDENCIES
>> 
>> although the jar is at this location... so I wanted to try another
>> location
>> if its because of the spaces or the different '\' '/' ?!
>> 
>> Any hint is welcome
>> 
>> Thanks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/locale-maven-repository-problem-tp27271359p27272126.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


Reply via email to