Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1102: Document minimum required JDK version 16 for Skara #1195

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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/)
irisclark marked this conversation as resolved.
Show resolved Hide resolved
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'