Skip to content

Commit

Permalink
chore:updating docs to reflect java 17 version upgrade (#540)
Browse files Browse the repository at this point in the history
* chore:updating docs to reflect java 17 version upgrade

* Update asciidoc/workloads/azure/backend/java/requirements_java.adoc

Co-authored-by: Jack Blower <ElvenSpellmaker@users.noreply.github.com>

---------

Co-authored-by: Jack Blower <ElvenSpellmaker@users.noreply.github.com>
  • Loading branch information
Athy17 and ElvenSpellmaker authored Aug 9, 2024
1 parent 2483275 commit c7dce07
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion asciidoc/testing/performance_testing_gatling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ git@github.com:amido/stacks-performance-tests.git

== Dependencies

* Java version 11
* Java version 17
* Maven
* IDE for Scala development. I.e. IntelliJ IDEA

Expand Down
2 changes: 1 addition & 1 deletion asciidoc/workloads/azure/backend/java/quickstart_java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ button and add the new parameters.

==== Build and run the application

Note that at a minimum https://adoptopenjdk.net/[Java 11] should be installed.
Note that at a minimum https://www.azul.com/downloads/?package=jdk#zulu[Java 17] should be installed.

Move to the `<PROJECT-NAME>/java` folder, then

Expand Down
14 changes: 7 additions & 7 deletions asciidoc/workloads/azure/backend/java/requirements_java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ keywords:
[discrete]
==== Mandatory
- https://adoptopenjdk.net/[Install Java 11] and set JAVA_HOME environment variable to the directory java is installed and make sure MAVEN_HOME environment variable is not set
- https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-win_x64.zip[Install Java 17] and set JAVA_HOME environment variable to the directory java is installed and make sure MAVEN_HOME environment variable is not set
- https://aka.ms/cosmosdb-emulator[CosmosDB Emulator 2.4.5+]
Expand All @@ -46,22 +46,22 @@ keywords:
- homebrew
- azure-cli: `brew install azure-cli`
- https://adoptopenjdk.net/releases.html[Install Java 11:]
- https://www.azul.com/downloads/?package=jdk#zulu[Install Java 17:]
----
$ wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.9%2B11.1/OpenJDK11U-jdk_x64_mac_hotspot_11.0.9_11.tar.gz
$ wget https://cdn.azul.com/zulu/bin/zulu17.52.17-ca-jdk17.0.12-macosx_aarch64.tar.gz
----
- Move to the folder where you downloaded the file and extract it:
----
$ tar -xf OpenJDK11U-jdk_x64_mac_hotspot_11.0.9_11.tar.gz
$ tar -xf zulu17.52.17-ca-jdk17.0.12-macosx_aarch64.tar.gz
----
- Add JAVA to you path:
- Add JAVA to your path:
----
export PATH=$PWD/OpenJDK11U-jdk_x64/Contents/Home/bin:$PATH
export PATH=$PWD/zulu17.52.17-ca-jdk17.0.12/Contents/Home/bin:$PATH
----
- An IDE
Expand All @@ -79,7 +79,7 @@ export PATH=$PWD/OpenJDK11U-jdk_x64/Contents/Home/bin:$PATH
[NOTE]
----
The current version of Ensono Stacks is using Java 11 (Current LTS, recommended).
The current version of Ensono Stacks is using Java 17 (Current LTS, recommended).
----
====
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The following tools are recommended for developing while using the Ensono Stacks
|(Windows users) a Linux distribution, e.g. https://docs.microsoft.com/en-us/windows/wsl/install[WSL]
|A Unix-based environment is recommended for developing the solution (e.g. macOS, or WSL for Windows users).

|Java 8/11/17
|Java 17
|Optional: Java is required to develop and run tests using PySpark locally - see https://spark.apache.org/docs/latest/[Spark documentation].

|https://learn.microsoft.com/en-us/cli/azure/install-azure-cli[Azure CLI]
Expand Down
4 changes: 2 additions & 2 deletions asciidoc/workloads/common/backend/java/ide_java.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We recommend that you install the following plugins:
=== How to import the whole project

In the IDE (We used IntelliJ) go to File -> New -> Project.
Set project SDK to Java 11. Click Next -> Next
Set project SDK to Java 17. Click Next -> Next

image::new_java_project.png[New Project]

Expand All @@ -74,7 +74,7 @@ Click on Add new Configuration and choose Application/Spring boot
image::run_configuration_1.png[Run Configurations_1]

Choose the main class as "Application.java" and set any relevant variables, such as to set environment variable
for **AZURE_COSMOSDB_KEY** and set JRE to Java 11. Click OK
for **AZURE_COSMOSDB_KEY** and set JRE to Java 17. Click OK

image::run_configuration_2.png[Run Configurations_2]

Expand Down

0 comments on commit c7dce07

Please sign in to comment.