You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2024/12/20 00:48:00 UTC

(sedona) branch master updated: [DOCS] Develop profiles (#1729)

This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new a763291ec0 [DOCS] Develop profiles (#1729)
a763291ec0 is described below

commit a763291ec0d9b724460d693912386f59c710c301
Author: James Willis <ja...@users.noreply.github.com>
AuthorDate: Thu Dec 19 16:47:55 2024 -0800

    [DOCS] Develop profiles (#1729)
    
    * add instructions for testing different spark/scala versions in Intellij
    
    * recommend JDK version for project rather than ide setting
    
    ---------
    
    Co-authored-by: jameswillis <ja...@wherobots.com>
---
 docs/community/develop.md  |  14 +++++++++++++-
 docs/image/ide-java-14.png | Bin 0 -> 70442 bytes
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/docs/community/develop.md b/docs/community/develop.md
index d9aefa3b14..264d349c85 100644
--- a/docs/community/develop.md
+++ b/docs/community/develop.md
@@ -23,7 +23,7 @@
 
 ### IDE
 
-We recommend [Intellij IDEA](https://www.jetbrains.com/idea/) with Scala plugin installed. Please make sure that the IDE has JDK 1.8 set as project default.
+We recommend [Intellij IDEA](https://www.jetbrains.com/idea/) with Scala plugin installed. Please make sure that the Project has the SDK set to a JDK 1.8.
 
 ### Import the project
 
@@ -120,6 +120,18 @@ You can fix this issue by disabling `Use '--release' option for cross-compilatio
 
 ![Disable "Use '--release' option for cross-compilation" when using Java 11](../image/ide-java-13.png)
 
+### Run Tests with Different Spark/Scala Versions
+
+If you want to test changes with different Spark/Scala versions, you can select the Spark and Scala profile in the Maven panel. Once you have selected the desired versions, reload the sedona-parent project. See picture below
+
+!!!Note
+    The profile change won't update the module names in the IDE. Don't be misled if a module still has a `-3.3-2.12` suffix in the name.
+
+!!!Note
+    Not all combinations of spark and scala versions are supported and so they will fail to compile.
+
+![Select Spark and Scala Profiles](../image/ide-java-14.png)
+
 ## Python developers
 
 ### IDE
diff --git a/docs/image/ide-java-14.png b/docs/image/ide-java-14.png
new file mode 100644
index 0000000000..b7b4858834
Binary files /dev/null and b/docs/image/ide-java-14.png differ