Unfortunately this does not solve my other issue...
In the other project I wanted to use something like this
repositories {
mavenRepo urls: 'file://' + new
File(System.getProperty('java.io.tmpdir'), '.m2/repository').absolutePath
}
dependencies {
compile group: 'de.acme.code', name: 'support', version:'SNAPSHOT'
}
but it fails with UNRESOLVED DEPENDENCIES.
is the repositories definition wrong ?
If I use for uploading a local repository
repositories {
flatDir(name: 'fileRepo', dirs: 'D:/Temp/repo')
}
and get by
dependencies {
compile files('D:/Temp/repo/API-SNAPSHOT.jar')
}
it works... but would like to try it with a maven rep ?
Thanks
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-tp27271359p27272332.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