Albert Chang
03/13/2024, 2:57 AMkotlin-dsl
plugin to the module. When I try to use Enum.entries
in the module, I get two errors:
• The feature "enum entries" is only available since language version 1.9
• This declaration needs opt-in. Its usage must be marked with '@kotlin.ExperimentalStdlibApi' or '@OptIn(kotlin.ExperimentalStdlibApi::class)'
Even if I add @OptIn(kotlin.ExperimentalStdlibApi::class)
, the first error still persists.
But if I use embedded-kotlin
instead of kotlin-dsl
, the errors go away. Any reasons why?
I'm using Gradle 8.6 and the bundled Kotlin version is 1.9.20.Albert Chang
03/13/2024, 3:05 AMvladimirsitnikov
03/13/2024, 4:31 AMVampire
03/13/2024, 9:07 AMVampire
03/13/2024, 9:08 AMAlbert Chang
03/13/2024, 9:17 AMmbonnin
03/13/2024, 9:41 AMVampire
03/13/2024, 2:16 PMafterEvaluate
anymore as also that plugin is not using it anymore since then. :-)mbonnin
03/13/2024, 2:19 PMafterEvaluate{}
needs to die blob upside down !