stepango
04/24/2018, 7:59 AMkts
files and use it from groovy. How could i achieve that. apply from: "file.gradle.kts"
is not working in this case. Is there any other way?gildor
04/24/2018, 8:07 AMkts
must work, maybe problem what is inside of your file.gradle.ktsCzar
04/24/2018, 8:16 AMbuild.gradle
to e.g. old-build.gradle
create build.gradle.kts
with following content:
import org.gradle.kotlin.dsl.*
plugins {
`java`
kotlin("jvm") version "1.2.31"
}
apply {
from("old-build.gradle")
}
Then move parts of code from groovy to build.gradle.kts.
This way you have your fully working groovy setup called on to from kotlin-dsl entry point.stepango
04/24/2018, 8:18 AMunable to resolve class
errorsgildor
04/24/2018, 8:21 AMstepango
04/24/2018, 8:21 AMgildor
04/24/2018, 8:21 AMstepango
04/24/2018, 8:24 AMkts
in groovy?gildor
04/24/2018, 8:24 AMstepango
04/24/2018, 8:25 AMgildor
04/24/2018, 8:25 AMFile_gradle$Foo
stepango
04/24/2018, 8:25 AMgildor
04/24/2018, 8:25 AMCzar
04/24/2018, 8:28 AMbuildSrc
.gildor
04/24/2018, 8:32 AMwhat i could import if no classes?tasks, plugin application and extension configuration, it’s a way to extract part of you build.gradle config