Slackbot
11/25/2022, 8:02 PMChris Lee
11/25/2022, 8:51 PMEli Graber
11/25/2022, 8:52 PMkotlin-dsl
plugin?Eli Graber
11/25/2022, 8:53 PMChris Lee
11/25/2022, 8:54 PMval implementation by configurations
…to get implementation
in scope. Alternately, you can stringly-type it via:
dependencies {
"implementation"("my.coordinates:1.2.3")
}
Chris Lee
11/25/2022, 8:56 PMOnly the main project build scripts and precompiled project script plugins have type-safe model accessors. Initialization scripts, settings scripts, script plugins do not. These limitations will be removed in a future Gradle release.https://docs.gradle.org/current/userguide/kotlin_dsl.html#type-safe-accessors
Eli Graber
11/25/2022, 8:58 PMChris Lee
11/25/2022, 8:59 PMVampire
11/26/2022, 11:11 AMEli Graber
11/26/2022, 11:53 PMEli Graber
11/29/2022, 7:17 PMEli Graber
11/29/2022, 7:18 PMChris Lee
11/29/2022, 7:18 PMEli Graber
11/29/2022, 7:34 PMChris Lee
11/29/2022, 7:34 PMVampire
11/29/2022, 7:41 PMgw build
, it complains that it cannot select the right variant for com.eygraber.gradle.utils
Eli Graber
11/29/2022, 7:44 PMChris Lee
11/29/2022, 7:45 PMVampire
11/29/2022, 7:45 PMEli Graber
11/29/2022, 7:45 PMChris Lee
11/29/2022, 7:50 PM➜ accessor-repro gw build
Starting a Gradle Daemon, 3 incompatible Daemons could not be reused, use --status for details
Type-safe project accessors is an incubating feature.
> Task :compileKotlin FAILED
e: /Users/chrislee/IdeaProjects/repro/accessor-repro/src/main/kotlin/com.example-compose.gradle.kts: (2, 5): Unresolved reference: implementation
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
Eli Graber
11/29/2022, 7:50 PMVampire
11/29/2022, 7:51 PMVampire
11/29/2022, 7:51 PMChris Lee
11/29/2022, 7:51 PMplugins {
java
}
dependencies {
implementation("androidx.compose:compose-bom:2022.11.00")
}
Chris Lee
11/29/2022, 7:52 PMVampire
11/29/2022, 7:52 PMimplementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
lineVampire
11/29/2022, 7:53 PMEli Graber
11/29/2022, 7:53 PM