diff --git a/Dockerfile b/Dockerfile index d9c1f5ea4..4083816ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18 +FROM node:18.20.5-bookworm-slim COPY package-lock.json package.json /app/ diff --git a/site/content/docs/developer/building-zap-with-intellij-idea.md b/site/content/docs/developer/building-zap-with-intellij-idea.md index 179efc0c2..84a7d1575 100644 --- a/site/content/docs/developer/building-zap-with-intellij-idea.md +++ b/site/content/docs/developer/building-zap-with-intellij-idea.md @@ -40,26 +40,29 @@ Then, in the ‘New Project’ window, with ‘Empty Project’ as automatically ![IntelliJ New Empty Project](/img/docs/developer/intellij-new-empty-project.png) -After creating the empty project, click the settings gear icon on the upper right and go to ‘Project Structure’. On the next window that pops up, pick an installed SDK. +After creating the empty project, click the settings gear icon on the upper right and go to ‘Project Structure’. On the next window that pops up, pick an installed SDK and click ok. ![IntelliJ Project Structure from Settings Menu](/img/docs/developer/intellij-settings-project-structure.png) ![Pick installed SDK](/img/docs/developer/intellij-sdk.png) -In the same window, select the 'Modules' tab under 'Project Settings', click on the ➕ button, and select 'Import Module'. +Now Negivate to the top left and click on file-->new--> "Module From Existing Sources", then go the zaproxy folder and select the ‘build.gradle.kts’ file that is present in the root of its directory, and click on OK. -![Import Module](/img/docs/developer/intellij-import-module.png) +![Import Module](/img/docs/developer/select-file-grade.png) Then, in the 'Select File or Directory to Import' window, navigate to any one of the cloned ZAP repositories, select the 'build.gradle.kts' file that is present in the root of its directory, and click on OK. -![Select Gradle Build Script](/img/docs/developer/intellij-select-gradle-build-script.png) - -Repeat the last two steps until you have imported all of the ZAP repositories as modules. Then, click on OK in the 'Project Structure' window. +Repeat the steps until you have imported all of the ZAP repositories as modules. Then, click on OK in the 'Select File or Directory to Import' window. You should now be able to see all the imported repositories in the IntelliJ IDEA Project tab. It is worth noting that some of the _zap-extensions_ add-ons may fail to compile if you do not have the required environment for them. This is to be expected and is not a problem unless you want to work on those add-ons, in which case see their READMEs for more details. +![Import Module](/img/docs/developer/CONF.png) + +Now we have to configure the IDE, On the top right bar, open "Run and debug configuration" by selecting "edit configuration", a new dialog box will appear, in the working directory set the path to zaproxy/zap/src/main/dist and click ok. + + ## Running ZAP In the IntelliJ Project tab navigate to: * zaproxy / zap / src / main / java / org / zaproxy / zap diff --git a/site/static/img/docs/developer/CONF.png b/site/static/img/docs/developer/CONF.png new file mode 100644 index 000000000..42df72d60 Binary files /dev/null and b/site/static/img/docs/developer/CONF.png differ diff --git a/site/static/img/docs/developer/Moduel-select-grade-build.png b/site/static/img/docs/developer/Moduel-select-grade-build.png new file mode 100644 index 000000000..d6b4de5ab Binary files /dev/null and b/site/static/img/docs/developer/Moduel-select-grade-build.png differ diff --git a/site/static/img/docs/developer/select-file-grade.png b/site/static/img/docs/developer/select-file-grade.png new file mode 100644 index 000000000..0da88e0d3 Binary files /dev/null and b/site/static/img/docs/developer/select-file-grade.png differ