has anyone of you a working example of a gradle pl...
# gradle
f
has anyone of you a working example of a gradle plugin project that uses the Spring or AllOpen Kotlin sub-plugins in TestKit with the Kotlin DSL?
Copy code
buildFile.toFile().writeText(
            """               
                import org.springframework.boot.gradle.dsl.SpringBootExtension

                plugins {
                    id("my-plugin")
                    java
                    kotlin("jvm") version "1.2.41"
                    kotlin("plugin.spring") version "1.2.41"
                }

                dependencies {
                    compile("org.springframework.boot", "spring-boot-starter-webflux", "2.0.2.RELEASE")
                }               
            """, Charset.defaultCharset()
        )
when using this test input, I get
Copy code
Failed to notify project evaluation listener.
   > org.jetbrains.kotlin.gradle.plugin.KotlinGradleSubplugin: org.jetbrains.kotlin.allopen.gradle.AllOpenKotlinGradleSubplugin not a subtype
   > org.jetbrains.kotlin.gradle.plugin.KotlinGradleSubplugin: org.jetbrains.kotlin.allopen.gradle.AllOpenKotlinGradleSubplugin not a subtype
converting the build.gradle.kts to a build.gradle file fixes the problem
so, there must be a problem in between TestKit, the Kotlin DSL and the Kotlin sub-plugins… question now is where to open the ticket
m
i haven't used the spring/allopen plugins, but i do know that testing Gradle plugins with TestKit and
build.gradle.kts
files doesn't work until 4.8
could also be an issue in the kotlin plugin