Robert Jaros
04/21/2025, 2:56 PMKotlinWebpack task (via gradle plugin). I'm testing Kotlin 2.2.0-Beta1 and it doesn't work anymore.Robert Jaros
04/21/2025, 2:57 PM> Failed to notify project evaluation listener.
> Cannot query the value of task ':examples:realworld:jsBrowserProductionWebpackSSR' property 'versions$kotlin_gradle_plugin_common' because it has no value available.Robert Jaros
04/21/2025, 2:58 PMRobert Jaros
04/21/2025, 3:00 PMExtending this class is deprecated. Scheduled for removal in Kotlin 2.4..Robert Jaros
04/21/2025, 3:02 PMKotlinWebpack task? I need to provide different webpack.config.d directory and different outputDirectoryturansky
04/21/2025, 5:42 PMRobert Jaros
04/21/2025, 6:26 PMtasks.getByName<KotlinWebpack>("jsBrowserProductionWebpackSSR").apply {
val method = this.javaClass.declaredMethods.find { it.name == "setVersions\$kotlin_gradle_plugin_common" }
val prop = project.objects.property<NpmVersions>()
prop.set(NpmVersions())
method?.invoke(this, prop)
// ...
}
I would definitely prefer another solution.Ilya Goncharov [JB]
04/23/2025, 11:27 AMIlya Goncharov [JB]
04/23/2025, 12:11 PMkotlin-gradle-plugin , you could declare kotlin-gradle-plugin as a friend dependency.
But there are no such good ways to declare the specific dependency as a friend, so some hacks are necessary anywayRobert Jaros
04/24/2025, 5:10 AM