-
Notifications
You must be signed in to change notification settings - Fork 125
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Can't set jvm-target option on Kotlin Compiler #84
Comments
Could you attach an example? |
#!/usr/bin/env kscript
@file:DependsOn("org.jetbrains.kotlin:kotlin-reflect:1.1.60")
@file:DependsOn("com.github.kittinunf.fuel:fuel-jackson:1.12.0")
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.github.kittinunf.fuel.Fuel
import com.github.kittinunf.fuel.jackson.responseObject
val mapper: ObjectMapper = jacksonObjectMapper()
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
data class User(val id: String, val name: String)
fun main(args: Array<String>) {
val (_, _, result) = Fuel.get("https://jsonplaceholder.typicode.com/users").responseObject<User>()
} running
|
Same for me. The At the moment compiler flags used by kscript can't be adjusted. We could add another directive (e.g. named What do you think? |
@holgerbrandl I think that makes sense. There's |
+1 |
1 similar comment
+1 |
As far as I can tell, there's currently no way to override the JVM target. Am I missing a configuration option? If not, could it be added (ability to set
-jvm-target
specifically or maybe a hook tokotlinc_opts
)?The text was updated successfully, but these errors were encountered: