Hrm.. tried all of those, but i'll go back.

Curious, i've "never" used the maven plugin before.. and I have over 30 
projects building with gradle.

is the maven plugin then a dependency of the artifactory gradle plugin?

Another one.

I tried this:
apply {
    apply plugin: 'java'
    apply from: 
'http://gradle.artifactoryonline.com/gradle/plugins/org/jfrog/buildinfo/build-info-extractor-gradle/1.0.1/artifactoryplugin-1.0.1.gradle'
}


repositories {
    mavenRepo urls: ['http://gradle.artifactoryonline.com/gradle/libs', 
'http://gradle.artifactoryonline.com/gradle/plugins']
}

dependencies() {

}

Which I assume should work no matter what heh.. (but it doesn't).

Roger


On Oct 31, 2010, at 11:00 AM, Tomer Cohen wrote:

> Hi Roger,
> 
> Looking at the script, you have a problem of declaring a maven repo 
> without the maven plugin applied. You can apply the plugin by adding the 
> following to your gradle script:
> 
> apply plugin: 'maven'
> 
> 
> Also, on your Artifactory instance you need to make sure that the 
> following remote repository is defined. It will be included in 
> Artifactory's global virtual repository '/repo' that you are currently 
> using as a maven repo and will allow the plugin to resolve all needed 
> dependencies.
> 
> http://gradle.artifactoryonline.com/gradle/libs/
> 
> If you notice anything wrong with the wiki please tell us.
> 
> Thanks,
> 
> Tomer
> 
> 
> On 10/31/2010 01:50 AM, Roger Studner wrote:
> 
>> any thoughts on why this:
>> group = 'com.fun'
>> version = '0.1'
>> 
>> apply {
>>     apply plugin: 'java'
>>     apply from: 
>> 'http://localhost:8080/artifactory/repo/org/jfrog/buildinfo/build-info-extractor-gradle/1.0.1/artifactoryplugin-1.0.1.gradle'
>> }
>> 
>> repositories {
>>     mavenRepo urls: "http://localhost:8080/artifactory/repo";
>> }
>> 
>> dependencies() {
>> 
>> }
>> 
>> 
>> Produces:
>> 
>> * What went wrong:
>> A problem occurred evaluating root project 'arttest'.
>> Cause: Could not resolve all dependencies for configuration 'classpath':
>>     - unresolved dependency: com.google.guava#guava;r06: not found
>>     - unresolved dependency: javax.annotation#jsr250-api;1.0: not found
>>     - unresolved dependency: org.apache.httpcomponents#httpcore;4.0.1: not 
>> found
>>     - unresolved dependency: commons-lang#commons-lang;2.4: not found
>>     - unresolved dependency: org.codehaus.jackson#jackson-mapper-asl;1.5.1: 
>> not found
>>     - unresolved dependency: org.apache.httpcomponents#httpclient;4.0.1: not 
>> found
>>     - unresolved dependency: org.codehaus.jackson#jackson-core-asl;1.5.1: 
>> not found
>>     - unresolved dependency: com.google.code.findbugs#jsr305;1.3.7: not found
>>     - unresolved dependency: org.gradle#gradle-plugins;0.9-preview-3: not 
>> found
>>     - unresolved dependency: org.slf4j#slf4j-api;1.5.10: not found
>>     - unresolved dependency: org.codehaus.groovy#groovy-all;1.7.1: not found
>>     - unresolved dependency: org.gradle#gradle-core;0.9-preview-3: not found
>> 
>> 
>> * Try:
>> Run with -s or -d option to get more details. Run with -S option to get the 
>> full (very verbose) stacktrace.
>> 
>> BUILD FAILED
>> 
>> 
>> Note if I get rid of all localhost, to point at artifactory's stuff itself.. 
>> no difference
>> 
>> I've seen other posts about this.. and just can't seem to get across this 
>> hurdle hah
>> 
>> THanks
>> 
>> 
>> ------------------------------------------------------------------------------
>> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
>> Create new apps&  games for the Nokia N8 for consumers in  U.S. and Canada
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
> 
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to