ml-commons: [BUG] ML-Commons Plugin build failure due to OpenSearch Core breaking changes

What is the bug? ML-Commons Plugin 3.0 build fails due to jackson update in OS core

How can one reproduce the bug?

./gradlew build

 FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'opensearch-ml'.
> java.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file /home/runner/.gradle/caches/jars-9/bc33e077f18aab4d8905d3690c9e67e4/jackson-core-2.15.0.jar.

* 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

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 41 (5 by maintainers)

Most upvoted comments

@penghuo @ylwu-amzn the fix for Jackson 2.15 content limits went in to main (https://github.com/opensearch-project/OpenSearch/pull/7550)

@reta I think that’s all the support we needed for now. Thanks a lot. I’m waiting for a successful build for OS build issue. After confirming this, I’ll close the issue.

@reta Right now OS is building failing due to delombok issue, we created an issue in freefair.

If you have any suggestion about the delombok issue that will be helpful.

In addition, we are facing build error:

Caused by: java.io.IOException: Error while instrumenting sun/util/resources/cldr/provider/CLDRLocaleDataMetaInfo with JaCoCo 0.8.8.202204050719/5dcf34a.
        at org.jacoco.agent.rt.internal_b6258fc.core.instr.Instrumenter.instrumentError(Instrumenter.java:161)
        at org.jacoco.agent.rt.internal_b6258fc.core.instr.Instrumenter.instrument(Instrumenter.java:111)
        at org.jacoco.agent.rt.internal_b6258fc.CoverageTransformer.transform(CoverageTransformer.java:92)
        ... 35 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 64

We are adding jacoco dependencies here.

If you have any suggestion how to solve this issue, that will also be helpful.

Thanks.