Skip to content

Plan for native gradle plugin? #296

Closed

Description

@ajantha-bhat

External gradle plugin is not actively maintained (https://github.com/revapi/revapi?tab=readme-ov-file#gradle) and the same plugin doesn't work with the latest gradle version (palantir/gradle-revapi#612)

So, is it possible to have a gradle plugin maintained and released as part of this community?

Activity

  1. ajantha-bhat commented on Jun 12, 2024

    @ajantha-bhat
    ContributorAuthor
  2. ajantha-bhat commented on Jun 19, 2024

    @ajantha-bhat
    ContributorAuthor

    ping

  3. metlos commented on Jun 26, 2024

    @metlos
    Member

    No plans to maintain it myself. If you're willing to take it up I'd be happy to help out with setting up the infrastructure (e.g. repo under the revapi org) and answer any questions you might have when implementing it...

  4. ajantha-bhat commented on Jun 26, 2024

    @ajantha-bhat
    ContributorAuthor

    Thanks for the reply. I would like to know if @CRogers wants to contribute their repo to this project. That way we don't have to reinvent the wheel.

    My idea was to maintain and fix bugs on top of it.

  5. CRogers commented on Jun 26, 2024

    @CRogers

    palantir/gradle-revapi is under the Apache license - feel free to fork or copy it and make an official version if you wish. I'd certainly like to migrate to an official version if we could and avoid maintaining our plugin.

    Our plugin is not Gradle 8 compatible yet as we havent got to it yet - we have an large number of plugins in the queue for adding Gradle 8 support (with a pretty lean team) and this one is quite far down the list due to limited internal use. We will eventually upgrade it. I will say that this was the first real Gradle plugin I ever made from scratch - it could definitely be improved (particularly the bit that find jar outputs - which is iirc is what's going wrong in Gradle 8).

  6. ajantha-bhat commented on Jun 27, 2024

    @ajantha-bhat
    ContributorAuthor
  7. jbonofre commented on Jun 27, 2024

    @jbonofre

    We already fork the gradle revapi plugin and I fixed the gradle 8.2+ support. Happy to bring it here and maintain it if we have a consensus.

  8. metlos commented on Jun 27, 2024

    @metlos
    Member

    Ok, so I can either fork https://github.com/palantir/gradle-revapi or any other fork that already has Gradle 8 support, like (I believe) https://github.com/nastra/gradle-revapi and give anyone interested in maintaining it permissions under the revapi org to do that.

    Which one do you think is best to fork?

  9. ajantha-bhat commented on Jun 27, 2024

    @ajantha-bhat
    ContributorAuthor

    we should fork https://github.com/palantir/gradle-revapi and keep new commits on top of it IMO and make a new release.

  10. metlos commented on Jun 27, 2024

    @metlos
    Member

    Ok, moving quickly I forked https://github.com/palantir/gradle-revapi and made you @ajantha-bhat the maintainer of it. We can keep this issue open to discuss any other setup needed, like how to do releases, etc, or, in fact, if you even want to be the person maintaining it 😉

  11. metlos commented on Jun 27, 2024

    @metlos
    Member
  12. ajantha-bhat commented on Jun 27, 2024

    @ajantha-bhat
    ContributorAuthor

    Thanks. Please also invite @jbonofre, @Fokko, @nastra, @CRogers

  13. ajantha-bhat commented on Jun 27, 2024

    @ajantha-bhat
    ContributorAuthor

    The next plan is to cherrypick the gradle update and plugin fix PRs to this repo and do a release.

  14. nastra commented on Jun 27, 2024

    @nastra

    I'll look into this tomorrow and will cherry-pick the required commits to update the plugin so that it works with the latest Gradle version (since I've done that already in my fork)

  15. jbonofre commented on Jun 27, 2024

    @jbonofre

    I think we need:

    • cleanup/rename of the original plugin to match revapi "hosting"
    • update to Gradle 8 (and other dependencies), maybe cleanup some dependency gradles
    • fix on Gradle 8.2+ by using externalConfiguration

    Ready to help there 😄

  16. 4 remaining items

  17. nastra commented on Jun 28, 2024

    @nastra

    Makes sense, I've updated this to org.revapi.revapi-gradle-plugin

  18. ajantha-bhat commented on Jun 30, 2024

    @ajantha-bhat
    ContributorAuthor

    @metlos: The main branch is ready for 1.8.0 release. It has all the required fixes.

    cc: @nastra, @jbonofre

  19. nastra commented on Jun 30, 2024

    @nastra

    I can take care of doing the Initial Plugin Release since I went through the process already when releasing the forked plugin

  20. nastra commented on Jun 30, 2024

    @nastra

    I can take care of doing the Initial Plugin Release since I went through the process already when releasing the forked plugin

  21. metlos commented on Jul 1, 2024

    @metlos
    Member

    @nastra please do, if you already know how to do it. I don't have experience releasing gradle plugins...

  22. nastra commented on Jul 1, 2024

    @nastra

    @metlos I've submitted the plugin and it's currently awaiting approval from Gradle to be released (which takes a few days). Can you please follow https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html#account_setup and create an account for the revapi org. I currently used my own Gradle plugin credentials for publishing but we can transfer the plugin to the revapi org (as described in https://github.com/gradle/plugin-portal-requests) so that revapi shows up as the plugin owner.

  23. nastra commented on Jul 2, 2024

    @nastra

    @metlos I've opened revapi/gradle-revapi#6. The one thing left that we need is to have GitHub secrets named GRADLE_KEY / GRADLE_SECRET in the https://github.com/revapi/gradle-revapi repo containing the info from that Revapi Org account I mentioned in my previous comment.

  24. ajantha-bhat commented on Jul 2, 2024

    @ajantha-bhat
    ContributorAuthor

    @metlos: Hi, it seems the gradle publish is blocked because they want us to publish using the official rev api account (created using https://docs.gradle.org/current/userguide/publishing_gradle_plugins.html#account_setup).

    Shall I use my email and create an account by username:revapi, fullname: revapi.org or do you have an official email that you use and you want to create the account using that?

  25. ajantha-bhat commented on Jul 3, 2024

    @ajantha-bhat
    ContributorAuthor
  26. metlos commented on Jul 3, 2024

    @metlos
    Member

    Thanks @ajantha-bhat and sorry for the slower response times. To make up for it, I enabled the issues in revapi/gradle-revapi.

  27. ajantha-bhat commented on Jul 3, 2024

    @ajantha-bhat
    ContributorAuthor

    Thanks @metlos: I have submitted the plugin (it is based on 1.8.0 tag)
    image

    Once, it is approved, we can announce the release.

  28. ajantha-bhat commented on Jul 3, 2024

    @ajantha-bhat
    ContributorAuthor

    hi @metlos, the plugin submission has failed 😢
    They are asking me to prove revapi.org domain ownership by adding some text to DNS or use official rev api email id.

    I don't have your email to discuss this privately. Please send me an email ([email protected]) to discuss more about it. Thanks.

  29. metlos commented on Jul 4, 2024

    @metlos
    Member

    @ajantha-bhat email sent

  30. ajantha-bhat commented on Jul 5, 2024

    @ajantha-bhat
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions