Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

fix gradle badge generation#784

Merged
epeee merged 3 commits into
masterfrom
fix_gradle_badges
Mar 5, 2019
Merged

fix gradle badge generation#784
epeee merged 3 commits into
masterfrom
fix_gradle_badges

Conversation

@epeee
Copy link
Copy Markdown
Contributor

@epeee epeee commented Mar 2, 2019

fixes #774

now generates badges like Gradle

I've already adjusted the badges of the last two releases in docs/release-notes.md

@epeee
Copy link
Copy Markdown
Contributor Author

epeee commented Mar 2, 2019

let's merge #783 first

Copy link
Copy Markdown
Contributor

@mstachniuk mstachniuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove at least unused code

@@ -17,11 +17,8 @@ public String getRepositoryBadge(String version, String publicationRepository, S
}

private String gradlePluginPortalBadge(String version, String publicationRepository, String pluginName) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now pluginName is unused. So you can remove all usages and mark:

  • get/setPublicationPluginName in AbstractReleaseNotesTask
  • get/setPublicationPluginName in ReleaseNotes
    as deprecated.
    I would remove it in the next MAJOR version.
    Don't forget to bump the minor version of Shipkit to follow SemVer!
    I'm working on Start shipping Javadoc #233 (it should be ready to review in 2 weeks), so we can merge this PR + my together (to bump minor only once and add new value for users).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, now I see ReleaseNotes are fixed in #785 but still more code should be removed in this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, I will revisit the code and will remove not needed code.

Comment thread docs/release-notes.md

#### 2.1.3
- 2019-02-23 - [2 commits](https://github.com/mockito/shipkit/compare/v2.1.2...v2.1.3) by [Marcin Stachniuk](https://github.com/mstachniuk) - published to [![Gradle](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/org/shipkit/java/maven-metadata.xml.svg?colorB=007ec6&label=Gradle)](https://plugins.gradle.org/plugin/org.shipkit.java/2.1.3)
- 2019-02-23 - [2 commits](https://github.com/mockito/shipkit/compare/v2.1.2...v2.1.3) by [Marcin Stachniuk](https://github.com/mstachniuk) - published to [![Gradle](https://img.shields.io/badge/Gradle-v2.1.3-blue.svg)](https://plugins.gradle.org/plugin/org.shipkit.java/2.1.3)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor. It would be nice to fix all badges for all versions. Btw. 2.1.4, 2.1.2, 2.1.1 didn't exist - error during deployment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, yes, I will do so.

Copy link
Copy Markdown
Contributor

@mstachniuk mstachniuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks for fixing that (this bug was my fault)! Next time I need to be faster.

@epeee epeee merged commit d0dcd77 into master Mar 5, 2019
@epeee epeee deleted the fix_gradle_badges branch March 5, 2019 04:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Badge generation for Gradle Plugin Portal in Release Notes

2 participants