<@UFT11FKSP> when will kvision gradle plugin go li...
# kvision
b
@Robert Jaros when will kvision gradle plugin go live? Also couldn't find any docs on what it does
r
It's ready since the release of KVision 2.x :)
It's used in all fullstack examples
b
Yeah, just finished reading updated git book. All clear now.
Although as an improvement for the future the plugin should add generated dirs to respective sourceSets
Just a quality of life improvement 🙂
I've also noticed it uses hard-coded frontend and common sourceSet names.
r
I have no idea about Gradle API for this things 🙂
b
In any case, it's usable and very helpful
r
Indeed, I'm working on a quite large kvision project for a few months now with over a dozen services and several dozen remote methods and it saves me writing really a lot of boilerplate.
b
Btw, i think start method in application class on js side should be mandatory, rather than optional
r
It should, but I had no idea how to force this when there are two alternatives for start
b
Copy code
abstract fun start(state: Map<String, Any> = mapOf())
r
but you will have to write this signature in your App
even when you are not using state
b
Correct, but i don't think it's harmful at all
But that's just my two cents 🙂
Getting the following when starting webpack
Copy code
ERROR in /home/mpetuska/IdeaProjects/Personal/hazelcast-explorer-2/build/js/packages_imported/kvision/2.7.0/kvision.js
Module not found: Error: Can't resolve './css/style.css' in '/home/mpetuska/IdeaProjects/Personal/hazelcast-explorer-2/build/js/packages_imported/kvision/2.7.0'
 @ /home/mpetuska/IdeaProjects/Personal/hazelcast-explorer-2/build/js/packages_imported/kvision/2.7.0/kvision.js 612:4-30
 @ ./kotlin/hazelcast-explorer-frontend.js
 @ multi ./kotlin/hazelcast-explorer-frontend.js
Any idea what that file is referring to?
Ah, i remember this one from before. KVISION jars are not being fully extracted and css files are filtered out
r
there is a workaround for this in all examples
manual
copy
in
frontendProcessResources
task