Big Chungus
06/27/2022, 7:15 PMBig Chungus
10/20/2022, 9:31 PMBig Chungus
11/07/2022, 10:49 PMBig Chungus
11/19/2022, 3:47 PMBig Chungus
12/15/2022, 11:39 PMBig Chungus
12/29/2022, 11:50 AM⚠️ DO NOT UPGRADE IF YOU'RE USING KOTLIN < 1.8.0 ⚠️
andylamax
12/29/2022, 9:25 PMBig Chungus
12/30/2022, 10:28 AMandylamax
01/23/2023, 2:15 PMbuild/tmp/publicPackageJson/package.json (No such file or directory)
Putting an empty package.json
results also in the error
Configuration cache state could not be cached: field '__extraDependencies$npm_publish_gradle_plugin__' from type 'dev.petuska.npm.publish.task.NpmAssembleTask': error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Cannot invoke "com.google.gson.JsonObject.getAsJsonObject(String)" because "json" is null
any known workarrounds??Lynnea Tan
01/24/2023, 12:51 AMpublishJsPackageToNpmjsRegistry
task to not fail a build?Big Chungus
02/15/2023, 10:53 PMMark Vogel
02/25/2023, 12:56 AMCould not determine the dependencies of task ':multiplatform:assembleJsPackage'.
> Cannot query the value of this provider because it has no value available.
I've narrowed it down to npmPublish
, if I remove the plugin the issue goes away (but then I can't do what I need)
It seems to possibly has something to do with the binaries.library()
vs binaries.executable()
.
Is there something I'm obviously doing wrong?
Appreciate the help!Big Chungus
03/06/2023, 8:10 AMYentaBot
03/06/2023, 8:10 AM@yentabot
You can also emoji-react to a message with ❓ or 🤖.
Feel free to give me feedback by replying to my answers in a thread or leaving emoji-reacts to my answers.YentaBot
03/06/2023, 8:11 AMandylamax
03/23/2023, 1:37 PMandylamax
04/12/2023, 8:14 AMnpm notice total files: 278
npm notice
npm notice Publishing to <http://aa.bb.cc.dd/>
npm ERR! code E400
npm ERR! 400 Bad Request - PUT <http://aa.bb.cc.dd/@picortex%2freact> - unsupported registry call
npm ERR! A complete log of this run can be found in:
npm ERR! /home/andylamax/.npm/_logs/2023-04-12T08_12_29_107Z-debug-0.log
Tried with npm publish 3.2.0 and 3.2.1 all with the same errorBig Chungus
04/30/2023, 9:18 AMRobert Jaros
05/01/2023, 8:56 AM> Task :kvision-assets:publishKvisionAssetsPackageToNpmjsRegistry FAILED
npm ERR! code EUSAGE
npm ERR!
npm ERR! Publish a package
npm ERR!
npm ERR! Usage:
npm ERR! npm publish <package-spec>
npm ERR!
npm ERR! Options:
npm ERR! [--tag <tag>] [--access <restricted|public>] [--dry-run] [--otp <otp>]
npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm ERR! [-ws|--workspaces] [--include-workspace-root]
npm ERR!
npm ERR! Run "npm help publish" for more info
npm ERR! A complete log of this run can be found in:
npm ERR! /home/rjaros/.npm/_logs/2023-05-01T08_38_33_017Z-debug-0.log
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kvision-assets:publishKvisionAssetsPackageToNpmjsRegistry'.
> Process 'command '/opt/rjaros/.gradle/nodejs/node-v18.12.1-linux-x64/bin/node'' finished with non-zero exit value 1
andylamax
07/09/2023, 10:20 AMConfiguration cache state could not be cached: field `__extraDependencies$npm_publish_gradle_plugin__` of task `:picortex-sdk-react:assembleJsPackage` of type `dev.petuska.npm.publish.task.NpmAssembleTask`: error writing value of type 'org.gradle.api.internal.provider.DefaultListProperty'
> Unable to process file: /media/andylamax/Auxilliary/Workspace/PiCortex/home/picortex/sdk/react/build/tmp/jsPublicPackageJson/package.json
This all happens during configuration phase (before execution phase)andylamax
07/09/2023, 11:00 AMBig Chungus
07/21/2023, 3:17 PMMatt Nelson
12/20/2023, 9:34 PMpackage.json
that some files within the package are "optional" and able to be excluded (or is that even something that needs to be done)?
Looking to achieve the same sort of functionality that Java/Android app's have with the ability to exclude resources (such as android's packagingOptions
gradle dsl). Is this something I need to define in the npm publication's package.json
?
e.g.
I publish https://www.npmjs.com/package/kmp-tor-binary-resources?activeTab=code
It contains pre-built native binaries for many platforms and architectures.
But want to be able to selectively exclude
files within the io/matthewnelson/kmp/tor/binary/native
directory for platforms that my node application won't be running on.Big Chungus
12/27/2023, 6:05 PMRobert Jaros
12/29/2023, 9:32 AMfiles {}
included in the npm module. It seems like the plugin uses some gradle cache, and it always includes the previous set of files in addition to new ones. I've tried cleaning and rebuilding the project without any change. I finally set org.gradle.caching=false
property, rebuild and it worked ok.Laxystem
02/12/2024, 8:27 PMLaxystem
02/12/2024, 8:51 PMFailed to apply plugin class 'org.gradle.language.base.plugins.LifecycleBasePlugin'.
> Cannot add task 'assemble' as a task with that name already exists.
Robert Jaros
01/22/2025, 4:56 PMFAILURE: 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 ChungusRobert Jaros
04/11/2025, 7:00 AMFAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':kvision-assets:publishZzzKvisionAssetsPackageToNpmjsRegistry' (type 'NpmPublishTask').
- In plugin 'dev.petuska.npm.publish' type 'dev.petuska.npm.publish.task.NpmPublishTask' property 'node' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'node'.
2. Mark property 'node' as optional.
For more information, please refer to <https://docs.gradle.org/8.13/userguide/validation_problems.html#value_not_set> in the Gradle documentation.
- In plugin 'dev.petuska.npm.publish' type 'dev.petuska.npm.publish.task.NpmPublishTask' property 'nodeHome' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'nodeHome'.
2. Mark property 'nodeHome' as optional.
For more information, please refer to <https://docs.gradle.org/8.13/userguide/validation_problems.html#value_not_set> in the Gradle documentation.
- In plugin 'dev.petuska.npm.publish' type 'dev.petuska.npm.publish.task.NpmPublishTask' property 'npm' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'npm'.
2. Mark property 'npm' as optional.
For more information, please refer to <https://docs.gradle.org/8.13/userguide/validation_problems.html#value_not_set> in the Gradle documentation.
@Big ChungusMárton Matusek
04/24/2025, 12:17 PM