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

From FFL Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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