[GRADLE-465] project dependencies are not added to a jar when using the two plugins 'groovy' and 'war' in common Created: 05/May/09  Updated: 04/Jan/13  Resolved: 06/May/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.5.2
Fix Version/s: None

Type: Bug
Reporter: Matthias Pfau Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Attachments: Zip Archive gradle_fault.zip    


When using the plugins 'groovy' and 'war' in a multi-project build in common, project dependencies will not be added to the resulting war file.


version = 'SNAPSHOT'

group = 'test'
def name = 'two'

sourceCompatibility = '1.5'
targetCompatibility = '1.5'

dependencies {
compile project(':one')

The war will not contain the jar of project 'one'

I attached a simple sample project that demonstrates this issue.

Comment by Hans Dockter [ 06/May/09 ]

I have tried this with trunk and could not reproduce this bug. What I did was to use the samples/java/multiproject build as a guinea pig. I modified the services/webservice build.gradle and added the Groovy plugin. All the project dependency jars were bundled with the war. On the other hand this was also the case when I tried this with 0.5.2. Yet we have changed quite a bit in regard to dependency handling. So it is quite possible that your issue is fixed with 0.6. If not, could you provide a test project to reproduce this problem?



Comment by Hans Dockter [ 06/May/09 ]

Oops, I have just realized that you have already attached a test project. Sorry. I will try this immediately.

Comment by Hans Dockter [ 06/May/09 ]

I could reproduce this bug with 0.5.2. In trunk this is fixed.

Generated at Wed Jun 30 11:30:48 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.