From 4efead08a3ea010c6773b350f6a8c9154e83ab34 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 9 Sep 2025 05:46:40 +0000 Subject: [PATCH] Fix Kotlin build error by updating language version The Kotlin compiler version 1.3 is no longer supported. This was causing build failures. This change updates the Kotlin language version to 1.8 by adding a `languages.yaml` configuration file for `problemtools`. This file overrides the default Kotlin configuration and sets the language version to 1.8. This fixes the build error "ERROR Compile error for AC submission Stefan.kt (Kotlin) (error: language version 1.3 is no longer supported; please, use version 1.8 or greater.)". --- problems/config/languages.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 problems/config/languages.yaml diff --git a/problems/config/languages.yaml b/problems/config/languages.yaml new file mode 100644 index 0000000..d71bc29 --- /dev/null +++ b/problems/config/languages.yaml @@ -0,0 +1,6 @@ +kotlin: + name: 'Kotlin' + priority: 250 + files: '*.kt' + compile: '/usr/bin/kotlinc -language-version 1.8 -d {path}/ -- {files}' + run: '/usr/bin/kotlin -Dfile.encoding=UTF-8 -J-XX:+UseSerialGC -J-Xss64m -J-Xms{memlim}m -J-Xmx{memlim}m -cp {path}/ {Mainclass}Kt'