Skip to content

Commit 4efead0

Browse files
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.)".
1 parent 75e4335 commit 4efead0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

problems/config/languages.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kotlin:
2+
name: 'Kotlin'
3+
priority: 250
4+
files: '*.kt'
5+
compile: '/usr/bin/kotlinc -language-version 1.8 -d {path}/ -- {files}'
6+
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'

0 commit comments

Comments
 (0)