Hello, after upgrading Gradle to 8.12 the plugin d...
# npm-publish
r
Hello, after upgrading Gradle to 8.12 the plugin doesn't work for me with the following message:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':kilua-assets:assembleAaaKiluaAssetsPackage' (type 'NpmAssembleTask').
  - Method 'action' is private and annotated with @TaskAction.
    
    Reason: Annotations on private methods are ignored.
    
    Possible solutions:
      1. Make the method public.
      2. Annotate the public version of the method.
    
    For more information, please refer to <https://docs.gradle.org/8.12/userguide/validation_problems.html#private_method_must_not_be_annotated> in the Gradle documentation.
@Big Chungus
b
I think I've fixed it in the latest release. Have you tried updating the plugin too?
r
Just found the new version. Checking now.
It requires JDK 21 and I'm still on 17 😞
b
Does it demand it? I need to bump targetJdk version down to 11
r
Copy code
* What went wrong:
A problem occurred configuring root project 'kilua-project'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve dev.petuska:npm-publish-gradle-plugin:3.5.2.
     Required by:
         root project : > dev.petuska.npm.publish:dev.petuska.npm.publish.gradle.plugin:3.5.2
      > Dependency requires at least JVM runtime version 21. This build uses a Java 17 JVM.
b
My bad, will patch it down to 11 over the weekend
thank you color 1
r
And perhaps it's time to update my project to JDK 21 🙂
m
Hey @Big Chungus was that downgrade from required JDK version of 21 -> 11 ever released?
b
No, apologies got swamped with other things. Will try to do so this weekend.
m
Ah ok. I was lookin for it, lol. Thanks for the quick response (and the awesome plugin!) EDIT: I'll file an issue for it in the repo
b
Should be done in 3.5.3 which is out now
👍 1
❤️ 1
Also thanks for the issue - always good to keep track of the changes.
👍 1