diff --git a/README.md b/README.md index 0f983ade7..8ae971bbf 100644 --- a/README.md +++ b/README.md @@ -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 `/.jdk/`. For example, on macOS, select the -`/.jdk/openjdk-15.0.1_osx-x64_bin/jdk-15.0.1.jdk/Contents/Home` +`/.jdk/openjdk-16_osx-x64_bin/jdk-16.jdk/Contents/Home` folder. ### Vim diff --git a/build.gradle b/build.gradle index 150decfef..cfb55f679 100644 --- a/build.gradle +++ b/build.gradle @@ -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'