FFL2:FFL2 Main/Dev Environment/Import FFL2 project into IntelliJ

From FFL Wiki
Revision as of 12:36, 10 November 2020 by Phallus (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create project

  • File | New module from existing sources
  • select 'fflmain' directory
  • 'Import project from external model' | 'Maven' | 'Finish'

Import Maven Modules

  • File | New module from existing sources
  • select 'java' directory
  • 'Import module from external model' | 'Maven' | 'Finish'

Create Run Configuration

  • Open FantacyApplication (Ctrl-N Windows / Ctrl-0 Mac)
  • Run the main method (this will error)
  • Fix the run configuration
    • 'Run' | 'Edit configurations...'
    • Working directory: $MODULE_WORKING_DIR$
    • Use classpath of module: fantacyweb

Create Service (Optional but handy)

  • 'View' | 'Tool Windows' | 'Services'
  • '+' icon to add a service
  • 'Run Configuration Type' | 'Kotlin'

Now you can run / debug the service from the services tab