# Logstash failing to build with custom java Plugin after log4j issue fix in 7.16.1 build

**URL:** <https://discuss.elastic.co/t/logstash-failing-to-build-with-custom-java-plugin-after-log4j-issue-fix-in-7-16-1-build/292316>\
**Category:** Logstash\
**Created:** [December 17, 2021, 1:50pm UTC](https://discuss.elastic.co/t/logstash-failing-to-build-with-custom-java-plugin-after-log4j-issue-fix-in-7-16-1-build/292316 "2021-12-17T13:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahulkumar\_Pawar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulkumar_pawar/32/99220_2.png) [@Rahulkumar\_Pawar](https://discuss.elastic.co/u/Rahulkumar_Pawar)\
**Post date:** [December 17, 2021, 1:50pm UTC](https://discuss.elastic.co/t/logstash-failing-to-build-with-custom-java-plugin-after-log4j-issue-fix-in-7-16-1-build/292316/1 "2021-12-17T13:50:03Z")

</div>

I upgraded logstash source with 7.16.1 to have log4j vulnerability fix.

Followed below steps

- Downloaded source code -- [GitHub - elastic/logstash at v7.16.1](https://github.com/elastic/logstash/tree/v7.16.1)

- for source repo, ran `./gradlew assemble` followed by `rake bootstrap` and provided the same path in gradle.properties of plugin.

- for plugin repo , ran `./gradlew gem`

still getting `error: package co.elastic.logstash.api does not exist` error.

I'm able to extract the jar(7.16.1) and it is prepared as expected. but so far no clue.

when I switched back to version(7.8.0) which I had been using and it works perfectly fine.

TIA

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 14, 2022, 1:50pm UTC](https://discuss.elastic.co/t/logstash-failing-to-build-with-custom-java-plugin-after-log4j-issue-fix-in-7-16-1-build/292316/2 "2022-01-14T13:50:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
