hfhbd
08/10/2022, 4:54 AMplugins {
`kotlin-dsl`
kotlin("plugin.serialization") version "1.7.0"
}
repositories {
gradlePluginPortal()
mavenCentral()
}
hfhbd
08/10/2022, 4:59 AMephemient
08/10/2022, 5:12 AMembeddedKotlinVersion
is available in Kotlin build scriptsFleshgrinder
08/10/2022, 5:18 AMembeddedKotlinVersion
everywhere. Sticking with the latest Kotlin makes all things impossible to use in Gradle. 😛Ayfri
08/10/2022, 6:31 AMembeddedKotlinVersion
before, thanks for the information :)Venkataramanan Parameswaran
08/10/2022, 6:13 PMembeddedKotlinVersion
how can i change this?ephemient
08/10/2022, 6:14 PMVenkataramanan Parameswaran
08/10/2022, 6:23 PMbuildscript {
val kotlinVersion = "1.7.0"
}
...
dependencies {
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
}
can i safely replace the kotlinVersion with embeddedKotlinVersion?.. What is the difference between both of them. and what is the usecase of embeddedKotlinVersion
ephemient
08/10/2022, 6:25 PMembeddedKotlinVersion
is useful when you need to be compatible with `org.gradle.kotlin.embedded-kotlin`/`org.gradle.kotlin.kotlin-dsl`. if you're not writing a gradle plugin (or something which will be used as a gradle buildscript dependency) then don't worry about it.Venkataramanan Parameswaran
08/10/2022, 6:53 PM