How do I fix this?
# multiplatform
m
How do I fix this?
Am using Kotlin 1.7.10 with Gradle 7.4.1
a
like that:
Copy code
val jvmMain by getting {
}
m
Thanks.
e
there's also
by creating
,
by existing
, and
by registering
, all of which work in all named domain object collections in Gradle Kotlin DSL
m
Gradle moment. Why can't we have single
by getting
a
Gradle moment. Why can't we have single
by getting
You can make PR to gradle and propose
maybeCreating
that will be backed by
maybeCreate
(https://docs.gradle.org/current/javadoc/org/gradle/api/NamedDomainObjectContainer.html#maybeCreate-java.lang.String-)
e
they are the equivalent of
getByName()
,
named()
,
create()
,
register()
- and for lazy configuration, the distinction between them is important