Skip to content
Permalink
Browse files
1102: Document minimum required JDK version 16 for Skara
Reviewed-by: kcr, iris
  • Loading branch information
erikj79 committed Jul 9, 2021
1 parent 2540619 commit 2ae00f87b1670ce30b4b17b1f96acf6f3266c05b
Showing with 11 additions and 7 deletions.
  1. +7 −7 README.md
  2. +4 −0 build.gradle
@@ -46,8 +46,8 @@ external Git source code hosting providers are available:

## Building

[JDK 14](http://jdk.java.net/14/) or later and [Gradle](https://gradle.org/)
6.6 or later is required for building. To build the project on macOS or
[JDK 16](http://jdk.java.net/16/) or later and [Gradle](https://gradle.org/)
7.0 or later is required for building. To build the project on macOS or
GNU/Linux x64, just run the following command from the source tree root:

```bash
@@ -69,7 +69,7 @@ also want to build the bot images run `sh gradlew images` on GNU/Linux or

If you want to build on an operating system other than GNU/Linux, macOS or
Windows _or_ if you want to build on a CPU architecture other than x64, then
ensure that you have JDK 14 or later installed locally and JAVA_HOME set to
ensure that you have JDK 16 or later installed locally and JAVA_HOME set to
point to it. You can then run the following command from the source tree root:

```bash
@@ -84,8 +84,8 @@ tree root.
If you don't want the build to automatically download any dependencies, then
you must ensure that you have installed the following software locally:

- JDK 14 or later
- Gradle 6.6 or later
- JDK 16 or later
- Gradle 7.0 or later

To create a build then run the command:

@@ -224,12 +224,12 @@ or IDE.
If you choose to use [IntelliJ IDEA](https://www.jetbrains.com/idea/) as your
IDE when working on Skara you can simply open the root folder and the project
should be automatically imported. You will need to configure a Platform SDK that
is JDK 14 or above. Either set this up manually, or [build](#building) once from
is JDK 16 or above. Either set this up manually, or [build](#building) once from
the terminal, which will download a suitable JDK. Configure IntelliJ to use it
at `File → Project Structure → Platform Settings → SDKs → + → Add JDK...` and
browse to the downloaded JDK found in `<skara-folder>/.jdk/`. For example, on
macOS, select the
`<skara-folder>/.jdk/openjdk-15.0.1_osx-x64_bin/jdk-15.0.1.jdk/Contents/Home`
`<skara-folder>/.jdk/openjdk-16_osx-x64_bin/jdk-16.jdk/Contents/Home`
folder.

### Vim
@@ -61,6 +61,10 @@ configure(subprojects.findAll() { it.name != 'bots' }) {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.7.1'
}

tasks.withType(JavaCompile).configureEach {
options.release.set(16)
}

compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'

1 comment on commit 2ae00f8

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 2ae00f8 Jul 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.