Skip to content

Gradle - skip uploading JAR if no jar produced in build#538

Merged
yahavi merged 1 commit intojfrog:masterfrom
yahavi:gradle-pub-jar
Jul 18, 2021
Merged

Gradle - skip uploading JAR if no jar produced in build#538
yahavi merged 1 commit intojfrog:masterfrom
yahavi:gradle-pub-jar

Conversation

@yahavi
Copy link
Copy Markdown
Member

@yahavi yahavi commented Jul 16, 2021

  • All tests passed. If this feature is not already covered by the tests, I added new tests.

If Maven publication with components.java exist, but there are no JARs produced in the build, don't fail the build.
Instead log the returned exception with information about the project and the publication.
For example:

Illegal state detected at Maven publication: 'mavenJava', project ':api': Artifact api.jar wasn't produced by this build.

@yahavi yahavi requested a review from eyalbe4 July 16, 2021 17:15
@yahavi yahavi self-assigned this Jul 16, 2021
@yahavi yahavi merged commit 7d9d1b4 into jfrog:master Jul 18, 2021
@yahavi yahavi deleted the gradle-pub-jar branch July 18, 2021 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants