Error with running a command in Gradle ./gradlew gem

I run this command and get this error message

[root@Daley-DB grpc-plugin]# ./gradlew gem
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

FAILURE: Build failed with an exception.

* What went wrong:
Task 'gem' not found in root project 'logstash'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 38s

And is there a question hidden somewhere? :slight_smile:

The issue i have is in the attachment

And is there a question hidden somewhere? :slight_smile:

I mean, you did not provide any additional information to your original question and still did not ask any question.

And the error message seems to be quite clear.
If it is not for you, you really need to formulate a question that can be answered.

The question is that when i run this command from the command line
./gradlew gem
I get that error that gem is not found in root directory ‘logstash’
and the build stops with Fail
How can i fix this to stop this error

Hi

Thanks for your quick response
I am following the readme in this github site

and that is the link

Not really.
It tells you to invoke the gem task on that project.
But you invoke it on the logstash project.
And there as the error tells you, no such task exists.

Ok
How can i create a task which is the gem task
Thanks

Why should you want to do that?

just following instruction in the readme.md to create a logstash plugin

Again.
The readme you showed does NOT say you should execute that in the logstash project, but in the project where the readme is.
In THAT projec the gem task should already be present.
You are simply currently NOT following the readme properly but execute the command in the wrong project.

I mean, sure, just add

tasks.register("gem")

to the build script and you can call that no-op task, but that will not help you in any way.
You will get rid of the error, but then you will not find the gem file in the next step as you didn’t generate it.

hello,

I have fixed that issue but now have another error message

[root@Daley-DB grpc-plugin]# ./gradlew gem
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/grpc-plugin/build.gradle' line: 12

* What went wrong:
A problem occurred evaluating root project 'logstash'.
> /tmp/grpc-plugin/VERSION (No such file or directory)

Well, what is unclear?
You try to read a file that does not exist.