Unable to load class 'MyCreateFileBinaryPlugin'.
i followed this guide https://docs.gradle.org/current/userguide/writing_plugins.html#binary_plugins to make a binary plugin that builds fine, however i created a new project to test it (published via mavenlocal) and i get the error
Unable to load class 'MyCreateFileBinaryPlugin.'
I attached the custom plugin (plugin manuale) and the testing plugin (plugin-test) any help is greatly appreciated6 Replies
⌛ This post has been reserved for your question.
Hey @Gone temporarily-need to lock in! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
i think i narrwed the issue down to this not being able to detect the
MyCreateFileBinaryPlugin class at src\main\kotlin\com\example\binaryPlugin\MyCreateFileBinaryPlugin.kt
thanks! let me send the updated version thenIf you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
with that implementation the plugin is loaded but the task is missing
ooor not... i think i was running the commands in the plugin directory, if i run them from the test project directory i get this error
Cannot locate tasks that match 'plugin-test:createFileTaskFromBinaryPlugin' as project 'plugin-test' not found in root project 'plugin-manuale'.💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.