InitBuild.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Migrate `InitBuild` from Groovy to Java

+review REVIEW-5938

  1. … 2 more files in changeset.
Revert change to `InitBuild.projectLayoutRegistry`

Let's leave it as it is.

+review REVIEW-5932

Fix missing task property annotation for `InitBuild`

+review REVIEW-5932

Convert most of `build-init` to Java and static Groovy

  1. … 22 more files in changeset.
Improve method signature after past change

Javadoc

Allow specifying custom order of task options in help command output

This change was driven by the need to display more important option of build init plugin first.

  1. … 12 more files in changeset.
Rename 'with' option to 'test-framework' in build init plugin

  1. … 17 more files in changeset.
Rename 'with' option to 'test-framework' in build init plugin

  1. … 16 more files in changeset.
List available build init modifiers in the command line help

  1. … 2 more files in changeset.
Remove unnecessary code

Refactor build init plugin after applying a pull request

  1. … 17 more files in changeset.
implement support for init type modifiers

By default types do not support additional modifiers (and will fail with

an error message). However to support init modifiers the type

ProjectInitDescriptor implementation class simply needs to override the

withModifiers method and add handling logic in the generate method.

Currently only the java-library type supports init modifiers (spock).

  1. … 6 more files in changeset.
Minor tweaks

  1. … 1 more file in changeset.
REVIEW-3510 change String[] Option.options() to String Option.option()

  1. … 13 more files in changeset.
Add support for option annotation on fields

- support annotating fields

- defaults to field name when options not set

- move option related methods into seperate package

- cache static information about parsed classes in OptionReader

- TODO move assertion on valid method type into MethodOptionElement

- TODO add assertion on valid option field type into FieldOptionElement

- TODO throw decent exception when option.description not set. currently it's optional

- TODO throw decent exception when option.options not set when annotated on methods

- MAYBE: calculate option name on methods (e.g. setName -> option name name)

  1. … 26 more files in changeset.
rename commandlineoption annotation to option annotation; to be used for more general purposes than just passing commandline options in the future

  1. … 23 more files in changeset.
Add support for dynamically looking up possible option values - add optionValues annotation to mark methods providing default values - add optionValues to InitBuild task to list possible project layouts

  1. … 12 more files in changeset.
Sort the list of supported build types.

Changed the 'build-init' plugin to define the ProjectLayoutSetupRegistry as a project scoped service, instead of manually wiring it together.

  1. … 3 more files in changeset.
REVIEW-3373: Add back BuildTypeID specific ProjectInitDescriptors

- ProjectDescriptorRegistryFactory should not now about InitDescriptor details. Moved the details into the BuildType related ProjectInitDescriptor

- moved lot of production code related to ProjectInitDescriptors from groovy to java

- didn't merge the ProjectInitDescriptor and TemplateOperation but ProjectInitDescriptor now extends TemplateOperation. feels more natural to me than merging them into one interface

- added back languageProjectInitDescriptor for dealing with basic language related ProjectInitDescriptors

  1. … 20 more files in changeset.
Some changes on build init types based on REVIEW-3243 - start composing different init descriptors - seperate init ids from descriptors - move file generation into seperate util class for better testing

  1. … 17 more files in changeset.
Some more renamings in former build-setup subproject - rename build-setup plugin to build-init - rename ProjectSetupDescriptor interface to ProjectInitDescriptor - renamed buildSetup gradle subproject to buildInit

  1. … 195 more files in changeset.