ext in buildscript can not be recognised by Gradle Kotlin DSL

前端 未结 5 1852
走了就别回头了
走了就别回头了 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:23

    With Kotlin DSL ext has been changed to extra and it can be used under buildscript.

    Eg :-

    buildscript {
        // Define versions in a single place
        extra.apply{
            set("minSdkVersion", 26)
            set("targetSdkVersion", 27)
        }
    }
    

提交回复
热议问题