Gradle

Internal Gradle error with simple Grails build

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 0.9
  • Fix Version/s: someday
  • Component/s: None
  • Labels:
    None

Description

I have attached an example Grails project with a Gradle build that uses the Grails plugin. For some reason, the first time it builds I get an internal Gradle error. I think it's related to having the java.net repository on my search path (for GParallelizer).

I have put the output of gradle -d compile into a file called debug-output.txt that's in the root of the project.

Issue Links

Activity

Hide
Russel Winder added a comment -

Peter,

GParallelizer is no more, GPars is what should be being used. It is in the Codehaus Repository, groupId: org.codehaus.gpars, artifactId: gpars, version: 0.9.

Show
Russel Winder added a comment - Peter, GParallelizer is no more, GPars is what should be being used. It is in the Codehaus Repository, groupId: org.codehaus.gpars, artifactId: gpars, version: 0.9.
Hide
Russel Winder added a comment -

GPars did get synced by Codehaus so it is in the main Maven repository as well.

Show
Russel Winder added a comment - GPars did get synced by Codehaus so it is in the main Maven repository as well.
Hide
Peter Ledbrook added a comment -

OK, I can't edit the issue, but you may want to drop the priority. I misunderstood the syntax for mavenRepo. I now have separate mavenRepo lines for the Codehaus Snapshots repository and the java.net one. However, there really needs to be a better error message!

The problem is that when Gradle asks Ivy to download the plugin JAR in DefaultResolvedArtifact.getFile(), it doesn't download the JAR. I guess in this particular case because the java.net repository doesn't contain the JAR file.

Show
Peter Ledbrook added a comment - OK, I can't edit the issue, but you may want to drop the priority. I misunderstood the syntax for mavenRepo. I now have separate mavenRepo lines for the Codehaus Snapshots repository and the java.net one. However, there really needs to be a better error message! The problem is that when Gradle asks Ivy to download the plugin JAR in DefaultResolvedArtifact.getFile(), it doesn't download the JAR. I guess in this particular case because the java.net repository doesn't contain the JAR file.
Hide
Peter Ledbrook added a comment -

Thanks Russel. I thought the name had changed, but didn't see a GPars entry in the repository. I hadn't realised the project's artifacts had moved. I'll look into updating the Grails dependencies.

Show
Peter Ledbrook added a comment - Thanks Russel. I thought the name had changed, but didn't see a GPars entry in the repository. I hadn't realised the project's artifacts had moved. I'll look into updating the Grails dependencies.
Hide
Russel Winder added a comment -

Lowering priority as requested.

Show
Russel Winder added a comment - Lowering priority as requested.
Hide
Hans Dockter added a comment -

This will be improved once we switch to a native Maven resolver.

Show
Hans Dockter added a comment - This will be improved once we switch to a native Maven resolver.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated: