FFL2:FFL2 Main/Dev Environment/Import FFL2 project into IntelliJ: Difference between revisions

From FFL Wiki
Jump to navigation Jump to search
Added service config instructions
mNo edit summary
 
Line 20: Line 20:
** Use classpath of module: fantacyweb
** Use classpath of module: fantacyweb


= Create Service (Optional but handy)
= Create Service (Optional but handy) =
 
* 'View' | 'Tool Windows' | 'Services'
* 'View' | 'Tool Windows' | 'Services'
* '+' icon to add a service
* '+' icon to add a service

Latest revision as of 12:36, 10 November 2020

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