6.2 Profile Inheritance - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.1
6.2 Profile Inheritance
One profile can extend one or many different parent profiles. To define profile inheritance you can modify thebuild.gradle
of a profile and define the profile dependences. For example typically you want to extend the base
profile:dependencies { runtime project(':base') }
- When the create-app command is executed the parent profile's skeleton is copied first
- Dependencies and
build.gradle
is merged from the parent(s) - The
application.yml
file is merged from the parent(s) - CLI commands from the parent profile are inherited
- Features from the parent profile are inherited
dependencies { runtime project(':plugin') runtime project(':web') }