Create a 'generateSources' task that performs all generation tasks

Description

None

Environment

None

Activity

Show:
Steve Ebersole
April 4, 2013, 7:03 PM

Correct.

Hardy Ferentschik
April 4, 2013, 7:19 PM

+1 good idea, this way one can re-generate all the generated source with a single target. Might make the build also easier to understand.

Steve Ebersole
April 4, 2013, 7:22 PM

Well, regenerateSources is another idea altogether. generateSources would not "clean" first and given Gradle's up-to-date checking, would therefore probably not happen.

Steve Ebersole
April 4, 2013, 7:28 PM

Little nervous about generateSources and generateTestJpaMetamodelClasses. Most generateSources operate on production sources, whereas generateTestJpaMetamodelClasses operates on test classes.

Hardy Ferentschik
April 4, 2013, 7:34 PM

Little nervous about generateSources and generateTestJpaMetamodelClasses. Most generateSources operate on production sources, whereas generateTestJpaMetamodelClasses operates on test classes.

I think it is ok to combine them under generateSources. I guess the alternative is to have a generateTestSources as well.

Btw, I did not expect the generateSources would clean first by default.

Fixed

Assignee

Steve Ebersole

Reporter

Steve Ebersole

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure