This message was deleted.
# community-support
s
This message was deleted.
c
`kotlin-dsl`indicates that your application is a Gradle plugin; perhaps this isn’t the case. You can use the Kotlin DSL in your build script with the kotlin(“jvm”) (or other platforms) - but you should not mix a Gradle Kotlin DSL plugin (which requires Gradle 1.4/1.5) with other Kotlin code (that requires 1.6).
for example, here is a Kotlin 1.6 project:
Copy code
plugins {
    
    kotlin("jvm") version "1.6.20"
    `maven-publish`
    
    `java-test-fixtures`
}
j
Interesting and thank you for your reply. I have all my build scripts in buildSrc dir using the conventions method/style. That's where the
kotlin-dsl
is set for me. In one of my build script convention files that contains the KotlinCompile settings, I have the following:
Copy code
plugins {
    idea
    kotlin("jvm")
    kotlin("plugin.allopen")
    id("helper-conventions")
    id("kotlin-test-conventions")       
}
No version on the jvm line in this case. Because I'm using precompiled scripts, I can't set a version... so its coming from the
build.gradle.kts
in my
buildSrc
dir?
c
Hmmm. Not that familiar with previnoiked scripts (tend to do full plugins). This link seems to indicate there's a coupling between the build.gradle.kts and script plugins. https://dev.to/dussim/gradle-precompiled-script-with-kotlin-jvm-clf
thank you 1