andylamax
10/24/2022, 1:31 PMnpm-publish
doesn't fully support Configuration Cache.
I say "doesn't support fully" because, if I comment out dependency configurations on the packageJson block, everything works fine. But if I include those configs, it fails with the error
Execution failed for task ':picortex-sdk-react:assembleJsPackage'.
> Error while evaluating property 'package$npm_publish_gradle_plugin.packageJson.dependencies' of task ':picortex-sdk-react:assembleJsPackage'
> Failed to query the value of property 'dependencies'.
> Could not create an instance of type dev.petuska.npm.publish.extension.domain.json.JsonObject.
> Could not generate a decorated class for type JsonObject.
> class sun.reflect.generics.reflectiveObjects.TypeVariableImpl cannot be cast to class java.lang.reflect.ParameterizedType (sun.reflect.generics.reflectiveObjects.TypeVariableImpl and java.lang.reflect.ParameterizedType are in module java.base of loader 'bootstrap')
Is there a known current workaround you?? Also, should I create a ticket for this in github??
Tested Versions.
npm-publish: 3.0.3
kotlin : 1.7.10 & 1.7.20
gradle : 7.5.1
jdk : openjdk_18
Big Chungus
10/24/2022, 1:33 PMBig Chungus
10/24/2022, 1:33 PMandylamax
10/24/2022, 1:34 PMBig Chungus
10/24/2022, 1:34 PMBig Chungus
10/24/2022, 1:34 PMandylamax
10/24/2022, 1:37 PMandylamax
10/24/2022, 1:37 PMandylamax
10/24/2022, 1:39 PMContributing.md
is empty. So, I am assuming a plain pull request would suffice. No?Big Chungus
10/24/2022, 1:39 PMBig Chungus
10/24/2022, 1:40 PMandylamax
10/24/2022, 1:42 PMandylamax
10/24/2022, 9:17 PMAn exception occurred applying plugin request [id: 'plugin.publishing']
> Failed to apply plugin 'plugin.publishing'.
> Cannot run program "git": error=2, No such file or directory
Big Chungus
10/24/2022, 9:33 PMBig Chungus
10/24/2022, 9:34 PMandylamax
10/24/2022, 10:46 PMpackageJson
config block, one should use dependencies from kotlinSourceSets
Big Chungus
10/24/2022, 11:08 PMandylamax
10/25/2022, 12:05 AMsourceSets
looks like they are being declared now