# Error during plugin bundling , while running gradlew gem command

**URL:** <https://discuss.elastic.co/t/error-during-plugin-bundling-while-running-gradlew-gem-command/329864>\
**Category:** Logstash\
**Created:** [April 12, 2023, 6:08pm UTC](https://discuss.elastic.co/t/error-during-plugin-bundling-while-running-gradlew-gem-command/329864 "2023-04-12T18:08:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theophila\_Vaiz\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theophila_vaiz_r/32/118499_2.png) [@Theophila\_Vaiz\_R](https://discuss.elastic.co/u/Theophila_Vaiz_R)\
**Post date:** [April 12, 2023, 6:08pm UTC](https://discuss.elastic.co/t/error-during-plugin-bundling-while-running-gradlew-gem-command/329864/1 "2023-04-12T18:08:47Z")

</div>

I created a logstash output plugin and tried building using ./gradlew gem command but locally its fine I changed it as a automated jenkins pipeline there I'm facing this error

```auto
TypeError: Could not initialize copy of digest (SHA-512)
  initialize_clone at uri:classloader:/jruby/kernel/kernel.rb:14
     add_checksums at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:191
              each at org/jruby/RubyHash.java:1415
     add_checksums at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:190
              each at org/jruby/RubyHash.java:1415
     add_checksums at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:189
             build at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:281
               new at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package/tar_writer.rb:86
             build at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:278
              open at org/jruby/RubyIO.java:1158
     with_write_io at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package/file_source.rb:26
             build at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:277
             build at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/package.rb:127
     build_package at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/build_command.rb:88
           execute at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/commands/build_command.rb:75
            <main> at <script>:6

> Task :gem FAILED
:gem (Thread[included builds,5,main]) completed. Took 11.024 secs.

```

---

<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:** [May 10, 2023, 6:08pm UTC](https://discuss.elastic.co/t/error-during-plugin-bundling-while-running-gradlew-gem-command/329864/2 "2023-05-10T18:08:54Z")

</div>

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