Hi Andrew.

I'm new to Gradle too so I could well be missing something, but if the 
dependency in question can be found at 
http://shrub.appspot.com/maven.springframework.org/release/org/aspectj/aspectjrt/
 
shouldn't your mavenRepo repository URL be 
http://shrub.appspot.com/maven.springframework.org/release? I get a HTTP 
404 at http://maven.springframework.org/release.

-Andy



Andrew Berman <[email protected]> 
04/14/2011 03:36 AM
Please respond to
[email protected]


To
[email protected]
cc
Ken Sipe <[email protected]>
Subject
Re: [gradle-user] Having a tough time as a Gradle novice






Hmmmm, when I do change it to 1.6.10, it works since it exists in 
mavenCentral, but the second it goes to the Spring repo, it fails.  You 
can view the Spring repo here: 
http://shrub.appspot.com/maven.springframework.org/release/org/aspectj/aspectjrt/
 
and it definitely exists as 1.6.11.RELEASE and 1.6.11 and neither of them 
work.  It doesn't make sense since I am able to download 1.6.11 just fine 
in a Maven project.

Any ideas? 

Thanks again!

On Thu, Apr 14, 2011 at 12:12 AM, Rexxe <[email protected]> wrote:
Whoops, here is the repo block:

repositories {
       mavenCentral()
       mavenLocal()
       mavenRepo urls: ["http://maven.springframework.org/milestone";, 
               "http://repository.jboss.org/nexus/content/groups/public";,
               "http://maven.springframework.org/release";]
    }

That should fix the AspectJ issue.  It's located in the Spring Framework 
release repo.

Thanks for your help!

--Andrew


On Wed, Apr 13, 2011 at 10:04 PM, Ken Sipe <[email protected]> wrote:
Rexxe,

could you share your full repo and dependency script blocks?  It looks 
like you are referring to a dependency that doesn't make sense.   Testing 
it out... It looks like mavenCentral has:
 'org.aspectj:aspectjrt:1.6.10'

but  'org.aspectj:aspectjrt:1.6.11.RELEASE' and 
 'org.aspectj:aspectjrt:1.6.11' don't exist.   Where did you get the 
 'org.aspectj:aspectjrt:1.6.11.RELEASE' information?


Ken Sipe | [email protected] | blog: http://kensipe.blogspot.com



On Apr 13, 2011, at 10:34 PM, Rexxe wrote:

> I recently switched from Maven to Gradle and am really struggling with 
it.  I don't want to have to go back to Maven since I like the concepts of 
Gradle much more.  I am currently trying to compile my code and I get the 
following cryptic error and have no idea how to fix it:
>
> 20:26:47.112 [ERROR] [org.gradle.BuildExceptionReporter] * What went 
wrong:
> 20:26:47.112 [ERROR] [org.gradle.BuildExceptionReporter] Execution 
failed for task ':services:compileJava'.
> 20:26:47.112 [ERROR] [org.gradle.BuildExceptionReporter] Cause: Could 
not resolve all dependencies for configuration ':services:compile':
> 20:26:47.112 [ERROR] [org.gradle.BuildExceptionReporter]     - 
unresolved dependency: org.aspectj#aspectjrt;1.6.11.RELEASE: configuration 
not found in org.aspectj#aspectjrt;1.6.11.RELEASE: 'master'. It was 
required from parent#services;1.0 compile
>
> My build.gradle:
>
> compile {
> 'org.springframework:spring-context:3.0.5.RELEASE',
>         'org.springframework:spring-beans:3.0.5.RELEASE',
>         'org.springframework:spring-test:3.0.5.RELEASE',
>         'org.springframework.amqp:spring-amqp:1.0.0.RC1',
>         'org.springframework.amqp:spring-rabbit:1.0.0.RC1',
>         
'org.springframework.integration:spring-integration-core:2.0.3.RELEASE',
>         
'org.springframework.integration:spring-integration-http:2.0.3.RELEASE',
>         
'org.springframework.security.oauth:spring-security-oauth:1.0.0.M3',
>         
'org.springframework.integration:spring-integration-amqp:2.0.0.BUILD-SNAPSHOT',
>         
'org.springframework.security:spring-security-web:3.0.5.RELEASE',
>         
'org.springframework.security:spring-security-config:3.0.5.RELEASE',
>         'org.springframework.data:spring-data-redis:1.0.0.M3',
>         'com.rabbitmq:amqp-client:2.3.1',
>         'org.eclipse.jetty:jetty-server:7.3.1.v20110307',
>         'org.eclipse.jetty:jetty-servlet:7.3.1.v20110307',
>         'org.slf4j:log4j-over-slf4j:1.6.1',
>         'org.aspectj:aspectjrt:1.6.11.RELEASE',
>         'org.springframework:spring-aspects:3.0.5.RELEASE',
>         'org.springframework:spring-tx:3.0.5.RELEASE'
> }
>
> I know that I have the write dependency for AspectJ 1.6.11 (getting it 
from the Spring maven repo) as it works in another project I have.  Any 
help would be much appreciated!  Thanks!


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

   http://xircles.codehaus.org/manage_email




Reply via email to