Skip to content

Training ‐ 1. Setting Up Integrated Development Environment using JetBrains IntelliJ IDEA

Michael Elmore edited this page Nov 13, 2023 · 2 revisions

Requirements

Java SDK

GIT

Optional

JetBrains IntelliJ IDEA

Launch IDE

step1

Opening Existing Project

  1. Select Open

step2

  1. Navigate to OSH SDK Location and click OK

step3

Downloading OSH SDK from GitHub

  1. Clone OSH SDK directly from GIT

step4

  1. Enter URL for Git Repository (1) and press Clone (2)

step5

  1. Wait for cloning to complete (i.e. download)

step6

  1. Trust project (if prompted)

step7

  1. Success!

step8

Branch Checkouts

v1.4 – JDK 8

  • Checkout master branch (osh-node-dev-template SDK)
  • Checkout osh-core master branch
  • Checkout osh-addons master branch
  • Checkout osh-core/lib-ogc master branch

v2.0 – JDK 11

  • Checkout v2-upgrade branch (osh-node-dev-template SDK)
  • Checkout osh-core v2 branch
  • Checkout osh-addons v2 branch
  • Checkout osh-core/lib-ogc master branch
  1. Git Branch Selection
  2. osh-node-dev-template available branches
  3. osh-core and osh-addons submodules Each one lists the currently selected branch and provides a selection list to checkout a specific branch.
  • Make sure you are consistent in the checkouts as per above!

step9

Update Settings

  1. Open Settings

step10

  1. Settings Dialog: Setting Java Complier Set the appropriate Java version

step11

  1. Settings Dialog: Setting Gradle JVM Set the appropriate Java version

step12

Project JAVA SDK

  1. Open Project Structure

step13

  1. Set the appropriate Java Project SDK

step14

Building in IDE with Gradle

  1. Open Gradle tool

step15

  1. Modify Build Configuration (Right Mouse Click)

step16

  1. Exclude Execution of Unit Tests

step17

Select and Run Build Configuration

step18

Verifying Build

  • A successful build will generate the build subdirectory
  • The build will contain subdir distributions
  • The zip file is the build target