Elasticsearch build failure

Thanks for your answer @mayya ,

Tthe error is cleared now, but I had a new errors when I try to build it :


2: Task failed with an exception.
-----------
* What went wrong:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

* Try:
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 5s
19 actionable tasks: 19 up-to-date

and when I try ./gradlew clean


FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':distribution:archives:linux-tar:clean'.
> java.io.IOException: Unable to delete directory '/home/ELK-8/elasticsearch/distribution/archives/linux-tar/build'
    Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins/mapper-size/LICENSE.txt
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins/mapper-size/NOTICE.txt
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins/mapper-size/plugin-descriptor.properties
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins/mapper-size/mapper-size-8.0.0-SNAPSHOT.jar
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins/mapper-size
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT/plugins
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install/elasticsearch-8.0.0-SNAPSHOT
    - /home/ELK-8/elasticsearch/distribution/archives/linux-tar/build/install

* Try:
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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

* Try:
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