Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to publish Flow Framework plugin to maven local #186

Closed
joshpalis opened this issue Nov 21, 2023 · 0 comments · Fixed by #226
Closed

[BUG] Unable to publish Flow Framework plugin to maven local #186

joshpalis opened this issue Nov 21, 2023 · 0 comments · Fixed by #226
Assignees
Labels
bug Something isn't working untriaged

Comments

@joshpalis
Copy link
Member

What is the bug?

Unable to publish Flow Framework plugin to maven local. The following error occurs :

> Task :generatePomFileForPluginZipPublication FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':generatePomFileForPluginZipPublication' (type 'GenerateMavenPom').
  - Gradle detected a problem with the following location: '/local/home/jpalis/repos/delete/flow-framework/build/distributions/opensearch-flow-framework-3.0.0.0-SNAPSHOT.pom'.
    
    Reason: Task ':publishNebulaPublicationToMavenLocal' uses this output of task ':generatePomFileForPluginZipPublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':generatePomFileForPluginZipPublication' as an input of ':publishNebulaPublicationToMavenLocal'.
      2. Declare an explicit dependency on ':generatePomFileForPluginZipPublication' from ':publishNebulaPublicationToMavenLocal' using Task#dependsOn.
      3. Declare an explicit dependency on ':generatePomFileForPluginZipPublication' from ':publishNebulaPublicationToMavenLocal' using Task#mustRunAfter.
    
    For more information, please refer to https://docs.gradle.org/8.4/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

* 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
14 actionable tasks: 14 executed

How can one reproduce the bug?

clone https://github.com/opensearch-project/flow-framework/ and ./gradlew publishToMavenLocal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
2 participants