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

Generate Java 8 bytecode with Kotlin compiler [SPR-15183] #19749

spring-issuemaster opened this issue Jan 24, 2017 · 1 comment


None yet
2 participants
Copy link

commented Jan 24, 2017

Sébastien Deleuze opened SPR-15183 and commented

Kotlin 1.1 compiler supports generating Java 8 bytecode but generates by default Java 6 bytecode.

It can produces Java 8 bytecode with the following Gradle configuration:

compileKotlin { 
    kotlinOptions.jvmTarget = "1.8" 
compileTestKotlin { 
    kotlinOptions.jvmTarget = "1.8" 

It works flawlessly with Gradle but generate some errors in IDEA with default configuration. This should be fixed by KT-15819 so I prefer to wait a new Kotlin 1.1 build that fixes this issue before fixing this issue.

Issue Links:

  • #19667 Upgrade to Kotlin 1.1-beta

Referenced from: commits 692e432


This comment has been minimized.

Copy link
Collaborator Author

commented Feb 3, 2017

Sébastien Deleuze commented

With latest Kotlin Beta 2, the latest blocker for that is to be able to generate Java 8 bytecode with Kotlin Script, Ilya Chernikov from Kotlin team is aware of this issue and will try to provide a fix before 1.1 GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.