[GRADLE-583] Pull Test Task out of jar dependency chain Created: 02/Aug/09  Updated: 04/Jan/13  Resolved: 03/Aug/09

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

Type: Improvement
Reporter: Steve Appling Assignee: Steve Appling
Resolution: Fixed Votes: 0


 Description   

See discussion at http://www.nabble.com/pulling-out-test-task-td24634719.html

The test task should not be required to run as part of building an archive (especially when it is built just to satisfy another project's internal dependencies).

At the same time, we want to allow flexible testing of multiproject builds including tests of all projects that a particular project depends on or that depend on it.

The proposed change to the Java Plugin is:

  • Make jar not depend on test.
  • Add a build task that depends on dists and test (and style checks if that plugin is used)
  • Add a buildNeeded task that depends on build in this project and in any projects it depends on in the testRuntime configuration
  • Add a buildDependents task that depends on build in this project and any projects which depend on it in their testRuntime configurations


 Comments   
Comment by Steve Appling [ 02/Aug/09 ]

Checked in implementation of above. Have not yet added CodeQuality or documentation changes .

Comment by Steve Appling [ 03/Aug/09 ]

Finished CodeQuality changes. Now jar task does not depend on check task, but build task does.
Updated usergude and samples.

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