I used `buildSrc` with plugin written on kotlin. T...
# gradle
f
I used
buildSrc
with plugin written on kotlin. There are some helper functions (not in
build.gradle.kt
) which used gradle api, for example
Copy code
fun Project.registerDefaultRepositoriesAnd(url: String) {
    repositories {
        mavenLocal()
        mavenCentral()
        maven {
            setUrl(url)
        }
    }
}
so when in idea set java 7 as project jdk it requires
it
before
setUrl
, but everything works fine if set java 8 as project jdk