Hi, <@UFGCACPE0> I've made a PR for <https://gitla...
# opensavvy
r
Hi, @CLOVIS I've made a PR for https://gitlab.com/opensavvy/automation/kotlin-vite/-/work_items/77 but unfortunately it breaks compatibility with 2.4.10 (works fine with 2.4.20+). Is discontinuing support for 2.4.10 something you can consider or should I try to workaround?
c
Supporting only 2.4.20+ is acceptable
r
I think I've managed to workaround and still support 2.4.10. The examples work fine but unfortunately the tests are failing and I'm not really sure why.
c
I'm pushing a fix for the 2.4.21 upgrade soon, seems a KGP API has changed (visible in the auto-upgrade branches)
There's a chance that fix breaks 2.4.21- compat
r
Okay, I'll leave this for now.
c
I may need to upgrade the minimum supported NodeJS version, does it matter for you?
r
I don't think so
🙏 1
2.4.21 is merged, finally
Can you rebase your branch on the new
main
?
r
Yes, but over the weekend
👍 1
c
I’ll release a version for 2.4.21 before, then
r
I’ve updated my branch but I can’t fix the tests 😞
It seems the plugin can be built with two different KGP versions and can work with both of them (the locally published version works fine with my projects). But I’m not sure how to make it testable (or if it is even possible).
This is what I get in the failing tests results:
Copy code
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/gradle-testkit-15192246356514385038 with arguments [app:viteBuild]

Output:

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/gradle-testkit-15192246356514385038/app/build.gradle.kts' line: 1

* What went wrong:
An exception occurred applying plugin request [id: 'dev.opensavvy.vite.kotlin']
> Failed to apply plugin 'dev.opensavvy.vite.kotlin'.
   > Could not create plugin of type 'KotlinVitePlugin'.
      > Could not generate a decorated class for type KotlinVitePlugin.
         > org/jetbrains/kotlin/gradle/plugin/KotlinTarget
I’m giving up for now.
c
:/
The tests definitely pass in CI, so at least we can bound where it happens