# How to import a SMILE component?

  1. enter sbt console & run command add-component with the component release name.

    For example:

     




    [Lottery] $ add-component bread-release-0.5
    [info] bread-release-0.5 is added to the project
    [info] refresh eclipse project
    [info] add the import  'import-component bread-release-0.5(BreadData,BreadDomain,NotifierProcess)' to .../training/lottery/k/Lottery.ksmile and smile.
    
  2. define the import as follows in ksmile file (after library import definitions).

    import-component bread-release-0.5(BreadData,BreadDomain,NotifierProcess)
    

    Note: Optionally choose only those modules that are needed for the project for example only NotifierProcess can be mentioned in the dependency list above.

  3. Inside sbt, run command smile