# How to extend an imported component?

  1. To extend a component inorder to provide configuration parameters, use the keywork extend along with the component definition in ksmile file.

    import-component bread-release-0.5(NotifierProcess) extend (NotifierProcess)
    
  2. enter sbt shell, run command smile

  3. Extended module folder will appear under lottery/modules folder. This module folder unlike the project's module folder will only have conf folder with the respective module's conf file prepended with "extend"

Additional details:

  • Inorder to create a env specific conf file, prepend the extend conf with the env name.

    For ex: stage.extend.notifierprocess.conf