Slackbot
01/22/2024, 12:21 PMJúlio Cesar Bueno
01/22/2024, 12:25 PMVampire
01/22/2024, 12:41 PMvar is non-sense.
You probably are simply on an outdated Gradle version.Júlio Cesar Bueno
01/22/2024, 12:42 PMVampire
01/22/2024, 12:42 PMJúlio Cesar Bueno
01/22/2024, 12:43 PMJúlio Cesar Bueno
01/22/2024, 12:43 PMAdam
01/22/2024, 1:47 PMbuild.gradle.kts file, or another .kt file?Júlio Cesar Bueno
01/22/2024, 3:50 PMJúlio Cesar Bueno
01/22/2024, 3:50 PMVampire
01/22/2024, 4:22 PMkotlin-dsl plugin I guess it would also set this compiler plugin up properly like it does with the sam-with-receiver plugin.
Alternatively you can use .set() instead of =Júlio Cesar Bueno
01/22/2024, 4:28 PMplugins {
`kotlin-dsl`
`maven-publish`
}
and it still does not work... for now I am going with the .set . Thanksephemient
01/22/2024, 4:46 PM.kt file also doesn't get Gradle's default imports. you need
import org.gradle.kotlin.dsl.assign
for the assignment operator tooVampire
01/22/2024, 5:18 PMkotlin-dsl (or the compiler plugin applied somehow else) and the import it works in a normal kt file