-
Notifications
You must be signed in to change notification settings - Fork 20
Eclipse Setup
Sesu8642 edited this page Oct 16, 2024
·
9 revisions
-
Follow the steps in Building the project
-
(optional) I suggest creating a new workspace for this
-
Configure your JDK 17
- Window → Preferences → Gradle → Set the Java home (e.g. /usr/lib/jvm/java-17-openjdk-amd64) → Apply and Close
-
Import projects: File → Import... → Gradle → Existing Gradle Project → Next> → Next> → Browse... → Select the root of this repo → Finish
-
Install plugins
- Help → Eclipse Marketplace... → Install the following: SpotBugs Eclipse plugin, Checkstyle Plug-in, SonarLint → restart
-
Configure Checkstyle
- Right-click the "Feudal Tactics-core" project → Properties → Checkstyle → Check "Checkstyle active for this project" → also make sure the local configuration included in the repo is used
-
Configure save actions
- Window → Preferences → Java → Editor → Save Actions → enable all → Apply and Close
-
Configure license header for new files
- Window → Preferences → Java → Code Styles → Code Templates → Code → New Java files → Edit...
- insert the following in the beginning
// SPDX-License-Identifier: GPL-3.0-or-later
, followed by an empty line - OK → Apply and Close
-
Import run configurations
- File → Import → Run/Debug → Launch Configurations → Next > → Browse → Select the run_configs directory → Tick the configs you want to import → Finish