David Miguel
10/03/2020, 1:44 PMbuildSrc
module. However I cannot access implementation()
, kapt()
, etc extensions functions that are declared in the package org.gradle.kotlin.dsl
from the gradle-kotlin-dsl-accessors
artifact. Is it possible to have access to them from my buildSrc
module? Thanks for you help.Javier
10/03/2020, 1:49 PMfun DependencyHandler.implementation(dependencyNotation: Any): Dependency? =
add("implementation", dependencyNotation)
Javier
10/03/2020, 1:51 PMDavid Miguel
10/03/2020, 3:37 PMDavid Miguel
10/03/2020, 3:39 PMgradle-kotlin-dsl-accessors
artefact somehow in my buildSrc moduleDavid Miguel
10/03/2020, 3:39 PMno
10/05/2020, 7:44 AMDavid Miguel
10/06/2020, 7:33 AMkotlin-dsl
plugin in my buildSrc, but still I cannot access those accessors.Javier
10/06/2020, 7:42 AMkotlin("jvm")
, or multiplatform, android, etcDavid Miguel
10/06/2020, 7:54 AMbuild.gradle.kts
file from the buildSrc moduleDavid Miguel
10/06/2020, 7:54 AMJavier
10/06/2020, 7:58 AMid("com.android.library")
, try kotlin("jvm")
David Miguel
10/06/2020, 8:10 AMjvm
, it cannot find the declarations for these accessorsJavier
10/06/2020, 8:26 AMJavier
10/06/2020, 8:59 AMbuildSrc/build.gradle.kts
no
10/06/2020, 9:54 AMDavid Miguel
10/07/2020, 7:16 AMDavid Miguel
10/07/2020, 7:18 AMno
10/07/2020, 7:19 AMbuilPd
-> build
David Miguel
10/07/2020, 7:20 AMDavid Miguel
10/07/2020, 7:20 AMDavid Miguel
10/07/2020, 7:21 AMDavid Miguel
10/07/2020, 7:26 AMJavier
10/07/2020, 7:34 AMDavid Miguel
10/07/2020, 7:40 AMgradle-kotlin-dsl-accessors
artefact. But that is what I don’t know how to achieve it (maybe is not even posible).David Miguel
10/07/2020, 7:41 AMJavier
10/07/2020, 8:01 AMJavier
10/07/2020, 8:05 AMbuildSrc/build.gradle.kts
and it is not working, I can't access to implementation in the extensions fileJavier
10/07/2020, 8:12 AMdependencies { implementation(...) }
in buildSrc dependencies but I cannot access to implementation functions in extensions too.
https://plugins.gradle.org/plugin/org.gradle.kotlin.kotlin-dslno
10/07/2020, 8:43 AMDavid Miguel
10/08/2020, 11:37 AM