Pacane
11/20/2020, 4:00 PMgradle-kotlin-dsl-extensions-6.7.jar
to a plugin project? I'm trying to access some extension functions in there like
fun DependencyHandler.`implementation`(dependencyNotation: Any): Dependency? =
add("implementation", dependencyNotation)
Marc Knaup
11/20/2020, 4:06 PMPacane
11/20/2020, 4:09 PMVampire
11/20/2020, 4:29 PMPacane
11/20/2020, 4:30 PMimplementation
function inside a dependencies
blockVampire
11/20/2020, 4:32 PMPacane
11/20/2020, 4:32 PMVampire
11/20/2020, 4:33 PMimplementation
call, it is inPacane
11/20/2020, 4:33 PMimplementation(files(...))
dependency to my plugin project, and still can't reference those extension functionsVampire
11/20/2020, 4:35 PMPacane
11/20/2020, 4:35 PMfun DependencyHandlerScope.implementation(dependencyNotation: Any): Dependency? =
add("implementation", dependencyNotation)
fun DependencyHandlerScope.testImplementation(dependencyNotation: Any): Dependency? =
add("testImplementation", dependencyNotation)
fun DependencyHandlerScope.testRuntimeOnly(dependencyNotation: Any): Dependency? =
add("testRuntimeOnly", dependencyNotation)
gildor
11/20/2020, 5:10 PMPacane
11/20/2020, 5:13 PMVampire
11/20/2020, 5:13 PMgildor
11/20/2020, 5:14 PMVampire
11/20/2020, 5:14 PMfoo.gradle.kts
files in your Gradle source set and you apply the gradle-dsl
plugin.gildor
11/20/2020, 5:14 PMVampire
11/20/2020, 5:15 PMfoo.gradle.kts
files are nearly identical to what you would write in a normal build file. One notable difference is, that you must not have version numbers at applied plugins but define those as dependencies in the build script of the plugin projectPacane
11/20/2020, 5:16 PMVampire
11/20/2020, 5:16 PM.gradle.kts
gives the plugin idPacane
11/20/2020, 5:16 PMVampire
11/20/2020, 5:16 PMPacane
11/20/2020, 5:16 PMVampire
11/20/2020, 5:19 PM