ext in buildscript can not be recognised by Gradle Kotlin DSL

前端 未结 5 1853
走了就别回头了
走了就别回头了 2021-01-31 07:39

In these days, I am trying to write some codes to experience the Spring reactive features and kotlin extension in Spring 5, and I also prepared a gradle Kotlin DSL build.gradle

5条回答
  •  我在风中等你
    2021-01-31 08:37

    Global properties in kotlin-gradle-dsl:
    https://stackoverflow.com/a/53594357/3557894


    Kotlin version is embedded into kotlin-gradle-dsl.
    You can use dependecies with embedded version as follows:

    implementation(embeddedKotlin("stdlib-jdk7"))
    
    classpath(embeddedKotlin("gradle-plugin"))
    

提交回复
热议问题