From ff48046646c6d6159c7a6fed27589d13c9e14d83 Mon Sep 17 00:00:00 2001 From: Claire McGinty Date: Wed, 24 Jan 2024 14:08:38 -0500 Subject: [PATCH 1/2] (fix #5067) Drop Java 8 Targeting --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 3824ab4eb6..f63f48c9ce 100644 --- a/build.sbt +++ b/build.sbt @@ -221,7 +221,7 @@ val scala212 = "2.12.18" val scalaDefault = scala213 // compiler settings -ThisBuild / tlJdkRelease := Some(8) +ThisBuild / tlJdkRelease := Some(11) ThisBuild / tlFatalWarnings := false ThisBuild / scalaVersion := scalaDefault ThisBuild / crossScalaVersions := Seq(scalaDefault, scala212) From d2fca475d95036d334df7a8528d400d684456dba Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Fri, 19 Apr 2024 11:20:11 +0200 Subject: [PATCH 2/2] Update JDK docs --- README.md | 3 ++- site/src/main/paradox/FAQ.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 49a8973b55..b7dd56a390 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,8 @@ Scio 0.3.0 and future versions depend on Apache Beam (`org.apache.beam`) while e # Quick Start -Download and install the [Java Development Kit (JDK)](https://adoptopenjdk.net/index.html) version 8. +Download and install the Java Development Kit (JDK) version 11 or higher, +eg. [adoptium](https://adoptium.net/index.html) or [corretto](https://aws.amazon.com/corretto/). Install [sbt](https://www.scala-sbt.org/1.x/docs/Setup.html). diff --git a/site/src/main/paradox/FAQ.md b/site/src/main/paradox/FAQ.md index c6aed3e544..fbd2119ba4 100644 --- a/site/src/main/paradox/FAQ.md +++ b/site/src/main/paradox/FAQ.md @@ -484,7 +484,7 @@ If you encounter an SBT error with message "Initial heap size set to a larger va You might get an error message like `java.io.IOException: Unable to create parent directories of /Applications/IntelliJ IDEA CE.app/Contents/bin/.bigquery/012345abcdef.schema.json`. This usually happens to people who run IntelliJ IDEA with its bundled JVM. There are two solutions. -- Install JDK from [java.com](https://www.java.com/) and switch to it by following the "All platforms: switch between installed runtimes" section in this [page](https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under). +- Install JDK from a vendor like [adoptium](https://adoptium.net/index.html) or [corretto](https://aws.amazon.com/corretto/) and switch to it by following the "All platforms: switch between installed runtimes" section in this [page](https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under). - Override the bigquery `.cache` directory as a JVM compiler parameter. On the bottom right of the IntelliJ window, click the icon that looks like a clock, and then "Configure...". Then, edit the JVM parameters to include the line `-Dbigquery.cache.directory=/.bigquery`. Then, restart the compile server by clicking on the clock icon -> Stop, and then Start. #### How to make IntelliJ IDEA work with type safe BigQuery classes?