- Open your Intellij Idea settings
- Navigate to Editor -> Code Style -> Java
- From Scheme options select Import Scheme -> Eclipse XML Profile
- Open
./config/zac.xml
from the project root - Save the configuration
- Install Spotless Gradle plugin
- Open Settings and navigate to Keymap.
- Search for "spotless" and select "Reformat File with Spotless" action
- Add the default Reformat (Crtl+Alt+L / ⌘⌥L) and Optimise imports (Ctrl+Alt+O / ⌘⌥O) shortcuts
- Select "Remove" from the next Warning dialog for both shortcuts
- Make sure "Optimize imports on the fly" is turned off
- Correct JDK distribution (see above)
- Local WildFly installation.
- IntelliJ WilldFly plugin which is only available in the IntelliJ Enterprise Edition.
- The 1Password CLI extensions
- ZAC project imported/open in IntelliJ via 'Open as Gradle project'.
- Enable the built-in IntelliJ WildFly extension if not already enabled (it requires the IntelliJ Enterprise Edition).
- Create a run configuration (
IntelliJ IDEA - Settings... - Build, Execution, Deployment - Application Servers
) using the WildFly extension for ZAC using theJBoss/Wildfly Server - Final
template. SelectApplication server
-Configure
and point it to your local Wildfly installation in the project root. Do not change the automatically detected libraries! - Change the Wildfly configuration as follows:
- Add the 'exploded zaakafhandelcomponent WAR' artifact to the deployment:
- Configure 1Password CLI extensions to populate the required environment variables in Startup/Connection.
Uncheck the
use default
for the startup script and select thestartupwithenv.sh
script from the project root (orstartupwithenv.bat
for windows). Next add a new env var calledAPP_ENV
and set the value todevlocal
. - If you wish to enable Open Telemetry tracing from ZAC set the
SUBSYSTEM_OPENTELEMETRY__SAMPLER_TYPE
environment variable toon
(it is turned off by default). - Make sure you configured 1Password startup script for both
Run
andDebug
The KVK integration of ZAC is based on the KVK API. By default, (depending on your environment variables; see below) ZAC integrates with the KVK test environment. If you run ZAC from IntelliJ this requires a number of certificates to be added to your local Java keystore.
Please follow the instructions on: https://developers.kvk.nl/documentation/install-tls-certificate.