From 51cbb2265a019a894cb298a6eba05c9f364ae416 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 12 Sep 2023 22:33:49 +0200 Subject: [PATCH 1/5] Refine IntelliJ howto --- .../intellij-89-run-with-intellij.md | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md index f67ae77d7a8..29f88cfc7fd 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md @@ -12,22 +12,24 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a 1. Navigate to **File > Settings... > Build, Execution, Deployment > Build Tools > Gradle**. 2. Change the setting "Build an run using:" to "IntelliJ IDEA". -3. **Build > Build Project** -4. Open the project view (Alt+1) -5. Copy all build resources to the folder of the build classes +3. Navigate to **File > Settings... > Build, Execution, Deployment > Compiler > Java Compiler**. +4. Uncheck `--Use 'release' option for cross-compilation`. +5. **Build > Build Project** +6. Open the project view (Alt+1) +7. Copy all build resources to the folder of the build classes 1. Navigate to the folder `out/production/resources` 2. Select all folders below (`bst`, `csl-locales`, ...) 3. Press Ctrl+C to mark them for copying 4. Select the folder `classes` 5. Press Ctrl+V to start the copy process -6. Locate the class `Launcher` (e.g., by ctrl+N and then typing `Launcher`) -7. Click on the green play button next to the `main` method to create a Launch configuration. IntelliJ will fail in launching. -8. On the top right of the IntelliJ window, next to the newly created launch configuration, click on the drop down -9. Click on "Edit Configurations..." -10. On the right, click on "Modify options" -11. Ensure that "Use classpath of module" is checked -12. Select "Add VM options" -13. In the newly appearing field for VM options, insert: +8. Locate the class `Launcher` (e.g., by ctrl+N and then typing `Launcher`) +9. Click on the green play button next to the `main` method to create a Launch configuration. IntelliJ will fail in launching. +10. On the top right of the IntelliJ window, next to the newly created launch configuration, click on the drop down +11. Click on "Edit Configurations..." +12. On the right, click on "Modify options" +13. Ensure that "Use classpath of module" is checked +14. Select "Add VM options" +15. In the newly appearing field for VM options, insert: ```text --add-exports=javafx.controls/com.sun.javafx.scene.control=org.jabref From ef82869c39add149ccdd62fee5cd4e6fd68d1cc1 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 12 Sep 2023 22:46:40 +0200 Subject: [PATCH 2/5] Add some more exports --- .../intellij-89-run-with-intellij.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md index 29f88cfc7fd..f522447c0ef 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md @@ -35,6 +35,22 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a --add-exports=javafx.controls/com.sun.javafx.scene.control=org.jabref --add-opens=org.controlsfx.controls/org.controlsfx.control.textfield=org.jabref --add-exports=org.controlsfx.controls/impl.org.controlsfx.skin=org.jabref + --add-exports javafx.controls/com.sun.javafx.scene.control=org.jabref + --add-exports org.controlsfx.controls/impl.org.controlsfx.skin=org.jabref + --add-exports javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls + --add-exports javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls + --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls + --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls + --add-exports javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls + --add-exports javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls + --add-exports javafx.base/com.sun.javafx.event=org.controlsfx.controls + --add-exports javafx.base/com.sun.javafx.collections=org.controlsfx.controls + --add-exports javafx.base/com.sun.javafx.runtime=org.controlsfx.controls + --add-exports javafx.web/com.sun.webkit=org.controlsfx.controls + --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls + --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix + --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix + --add-exports com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle --add-reads org.jabref=org.fxmisc.flowless --add-reads org.jabref=org.apache.commons.csv ``` From 8bcf078104397c37c62b3321cecd183ce90a810a Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 12 Sep 2023 22:50:30 +0200 Subject: [PATCH 3/5] Update docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md Co-authored-by: Christoph --- .../intellij-89-run-with-intellij.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md index f522447c0ef..613e8d48fc4 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md @@ -15,7 +15,7 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a 3. Navigate to **File > Settings... > Build, Execution, Deployment > Compiler > Java Compiler**. 4. Uncheck `--Use 'release' option for cross-compilation`. 5. **Build > Build Project** -6. Open the project view (Alt+1) +6. Open the project view (Alt+1 , on mac cmd>+1) 7. Copy all build resources to the folder of the build classes 1. Navigate to the folder `out/production/resources` 2. Select all folders below (`bst`, `csl-locales`, ...) From fd162d1126ba93f6cdf36a8517ae2e8c7b1ec0ef Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 12 Sep 2023 22:54:29 +0200 Subject: [PATCH 4/5] Refinements --- .../guidelines-for-setting-up-a-local-workspace/eclipse.md | 4 +--- .../intellij-89-run-with-intellij.md | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/eclipse.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/eclipse.md index 19fcd469db1..68f0a8dcc44 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/eclipse.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/eclipse.md @@ -39,6 +39,7 @@ Always make sure your Eclipse installation us up to date. --add-exports javafx.controls/com.sun.javafx.scene.control=org.jabref --add-exports org.controlsfx.controls/impl.org.controlsfx.skin=org.jabref --add-exports javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls + --add-opens javafx.graphics/javafx.scene=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls @@ -49,9 +50,6 @@ Always make sure your Eclipse installation us up to date. --add-exports javafx.base/com.sun.javafx.runtime=org.controlsfx.controls --add-exports javafx.web/com.sun.webkit=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls - --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix - --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix - --add-exports com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle --patch-module org.jabref=build/resources/main ``` diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md index 613e8d48fc4..4e620044a32 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md @@ -38,6 +38,7 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a --add-exports javafx.controls/com.sun.javafx.scene.control=org.jabref --add-exports org.controlsfx.controls/impl.org.controlsfx.skin=org.jabref --add-exports javafx.graphics/com.sun.javafx.scene=org.controlsfx.controls + --add-opens javafx.graphics/javafx.scene=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.scene.traversal=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls @@ -48,9 +49,6 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a --add-exports javafx.base/com.sun.javafx.runtime=org.controlsfx.controls --add-exports javafx.web/com.sun.webkit=org.controlsfx.controls --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls - --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix - --add-exports javafx.graphics/com.sun.javafx.stage=com.jfoenix - --add-exports com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle --add-reads org.jabref=org.fxmisc.flowless --add-reads org.jabref=org.apache.commons.csv ``` From eb92d63751797114cd47b7669915cb52dd073398 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Tue, 12 Sep 2023 23:01:06 +0200 Subject: [PATCH 5/5] One more --- .../intellij-89-run-with-intellij.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md index 4e620044a32..cd0b746d7ed 100644 --- a/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md +++ b/docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-89-run-with-intellij.md @@ -43,6 +43,7 @@ Due to [IDEA-119280](https://youtrack.jetbrains.com/issue/IDEA-119280), it is a --add-exports javafx.graphics/com.sun.javafx.css=org.controlsfx.controls --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=org.controlsfx.controls --add-exports javafx.controls/com.sun.javafx.scene.control=org.controlsfx.controls + --add-opens=javafx.controls/javafx.scene.control.skin=org.controlsfx.controls --add-exports javafx.controls/com.sun.javafx.scene.control.inputmap=org.controlsfx.controls --add-exports javafx.base/com.sun.javafx.event=org.controlsfx.controls --add-exports javafx.base/com.sun.javafx.collections=org.controlsfx.controls