This message was deleted.
# community-support
s
This message was deleted.
1
c
Removing
kotlin-dsl
lets the extension function resolve.
v
Iirc it should automatically have
stdlib-jdk8
. What's the code in question?
c
The code
Copy code
val path: Path = <temppath>
val expected = """
    <expected dockerfile contents>
""".trimIndent()
val actual = path.resolve("build/docker/Dockerfile").toFile().readText()
assertEquals(expected, actual)
Specifically I have to call
toFile().readText()
because I can't get the
Path.readText()
method to resolve
the only diff between good-plugin or bad-plugin is
kotlin-dsl
v
Although Gradle 7.5 bundles Kotlin 1.6.21, it still uses api version and language version 1.4 as that is what the 7.x line started with, to not break existing code in a minor Gradle version as far as possible. The
kotlin-dsl
plugin also sets this api and language version accordingly.
I guess with Gradle 8.x it will be raised to 1.6, or even 1.7 if until then 1.7 is embedded. Btw. you can use
kotlin("jvm") version embeddedKotlinVersion
in good-plugin to have the embedded kotlin version.
c
Ah ok! Thanks @Vampire
👌 1