Skip to content

Improve IntelliJ configuration (annotation processing, auto-import, maven argLine) #768

@hohwille

Description

@hohwille

As a IDEasy user, I want to have my IntelliJ preconfigured so that my code is working out of the box.

Follow up of #52

Acceptance criteria:

  • I want to have annotationProcessing activated for my project using code-generation (and for projects that don't use code-generation it will cause no harm). File .idea/compiler.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <annotationProcessing>
      <profile default="true" name="Default" enabled="true" />
    </annotationProcessing>
  </component>
</project>
  • I want to get import statements generated by IntelliJ automatically on save / organize-imports if the simple name is unique. File .intellij/config/options/editor.xml:
<application>
  <component name="CodeInsightSettings">
    <option name="ADD_UNAMBIGIOUS_IMPORTS_ON_THE_FLY" value="true" />
  </component>
</application>
  • I explicitly do not want that IDEasy disables argLine in Maven > Running Tests via file .idea/mavenProjectSettings.xml since then my tests fail and all developer would need to explicitly specify JVM args for every test run to get the test green:
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    🆕 New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions