Skip to content

[BUG] Build publishing broken due to duplicate artifacts #798

@dbwiddis

Description

@dbwiddis

What is the bug?

Since merging #687, snapshot publication is broken:

FAILURE: Build failed with an exception.

* What went wrong:
Task 'publishMavenJavaPublicationToSnapshotsRepository' not found in root project 'opensearch-sdk-java'.

Also, possibly related, unable to publish to mavenLocal().

> Task :publishNebulaPublicationToMavenLocal FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':publishNebulaPublicationToMavenLocal'.
> Failed to publish publication 'nebula' to repository 'mavenLocal'
   > Invalid publication 'nebula': multiple artifacts with the identical extension and classifier ('jar', 'sources').

Reverting the associated commit 04d9eab allows publishing.

How can one reproduce the bug?

./gradlew publishToMavenLocal

What is the expected behavior?

BUILD SUCCESSFUL in 8s
9 actionable tasks: 9 executed

Do you have any additional context?

This PR also broke gradle run, see #789 (this was known before merge, but the additional failures were not)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions