GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Eclipse plugin for 1.14.0 and newer has version number 1.13.0 · Issue #744 · google/google-java-format

Eclipse plugin for 1.14.0 and newer has version number 1.13.0 #744

New issue
Copy link
New issue
Copy link
Closed
Closed
Eclipse plugin for 1.14.0 and newer has version number 1.13.0#744
Copy link
Labels
Eclipse

Description

@PhilippWendler
PhilippWendler
opened on Feb 10, 2022
Issue body actions

The release page on GitHub for 1.14.0 contains a google-java-format-eclipse-plugin-1.13.0.jar but not the expected google-java-format-eclipse-plugin-1.14.0.jar.

Activity

  1. cushon commented on Feb 11, 2022

    @cushon
    cushon
    on Feb 11, 2022
    Collaborator
    More actions

    Thanks. This is the first release using a new GitHub actions workflow, and obviously something went wrong there.

    I think the mvn tycho-versions:update-eclipse-metadata -pl eclipse_plugin failed to update the version numbers for the Eclipse plugin, and that it's probably an updated version just with the wrong version numbers:

    google-java-format/.github/workflows/release.yml

    Line 41 in 2affc98

    mvn tycho-versions:update-eclipse-metadata -pl eclipse_plugin

    I'll try to sort it out.

  2. PhilippWendler commented on Mar 7, 2022

    @PhilippWendler
    PhilippWendler
    on Mar 7, 2022
    Author
    More actions

    Happened again for 1.15.0.

    Reacted by Stefan Zabka, Max Bureck and Mike Youngstrom
    Reacted by Jonathan Jogenfors
  3. norioxkimura commented on Apr 17, 2022

    @norioxkimura
    norioxkimura
    on Apr 17, 2022
    More actions

    Forgot to update the version number in eclipse_plugin/pom.xml?

    google-java-format/eclipse_plugin/pom.xml

    Line 25 in edf036c

    <version>1.13.0</version>

  4. cushon
    added
    Eclipse
    on Aug 4, 2022
  5. PhilippWendler commented on Jan 20, 2023

    @PhilippWendler
    PhilippWendler
    on Jan 20, 2023
    Author
    More actions

    Note that as discussed in #835, the wrong version number also makes updating google-java-format tricky because if you just put a new JAR with the same version number in dropins, it seems to be ignored (at least this is what it looks like for me). So it would be nice to get this fixed for new versions.

  6. PhilippWendler
    changed the title [-]GitHub release page for 1.14.0 has Eclipse plugin 1.13.0[/-] [+]Eclipse plugin for 1.14.0 and newer has version number 1.13.0[/+] on Feb 27, 2023
  7. PhilippWendler commented on Feb 27, 2023

    @PhilippWendler
    PhilippWendler
    on Feb 27, 2023
    Author
    More actions

    Occurred again for 1.16.0.

  8. bvo42 commented on Sep 6, 2023

    @bvo42
    bvo42
    on Sep 6, 2023
    More actions

    Happend again for v1.17.0.

    The plugin not only keeps the old version but also includes the old version of the google-java-format.jar

    Content of https://github.com/google/google-java-format/releases/download/v1.17.0/google-java-format-eclipse-plugin-1.13.0.jar/lib/google-java-format.jar/META-INF/maven/com.google.googlejavaformat/google-java-format/pom.properties

    #Created by Apache Maven 3.6.3
    groupId=com.google.googlejavaformat
    artifactId=google-java-format
    version=1.13.0
    
  9. PhilippWendler commented on Oct 4, 2023

    @PhilippWendler
    PhilippWendler
    on Oct 4, 2023
    Author
    More actions

    Happened again for 1.18.0.

    @cushon Any chance to get this resolved? Upgrading the Eclipse plugin is tedious because of this because Eclipse silently ignores a new JAR if it has the same version number. I suspect that several issues about the Eclipse plugin here would be resolved if the version is fixed.

  10. cushon commented on Oct 5, 2023

    @cushon
    cushon
    on Oct 5, 2023
    Collaborator
    More actions

    I am not currently using Eclipse and it isn't a supported IDE at my day job, which has been contributing the lack of support for Eclipse plugin here.

    I adjusted the step that is supposed to be updated the versions for the eclipse plugin (https://github.com/google/google-java-format/blob/685a6c9ebd43aab9ef458379de7d3883bfee970f/.github/workflows/release.yml#L34C1-L35), and pushed a draft 1.18.1 release that seems have successfully updated the versions:

    • 1c5f836
    • https://github.com/google/google-java-format/releases/tag/untagged-9270b5f5bb00eb1303bd

    @PhilippWendler can you let me know if that looks good to you?

  11. PhilippWendler commented on Oct 5, 2023

    @PhilippWendler
    PhilippWendler
    on Oct 5, 2023
    Author
    More actions

    @cushon Thank you very much! I would love to test this, but the last link is not working for me, and https://github.com/google/google-java-format/releases/tag/v1.18.1 doesn't have any JARs. Could you maybe upload it here?

  12. cushon commented on Oct 5, 2023

    @cushon
    cushon
    on Oct 5, 2023
    Collaborator
    More actions

    @PhilippWendler This is the build of the plugin: issue744.zip. (The .zip contains google-java-format-eclipse-plugin-1.18.1.jar.)

  13. PhilippWendler commented on Oct 5, 2023

    @PhilippWendler
    PhilippWendler
    on Oct 5, 2023
    Author
    More actions

    Works perfectly for me!

    I took my existing Eclipse installation with google-java-format 1.17.0 (which identifies itself as 1.13.0) and just put google-java-format-eclipse-plugin-1.18.1.jar into dropins. After a restart of Eclipse, I see version 1.18.1 in the list of installed plugins, and the new version of the plugin is used. I verified this by attempting to format some code that triggers #959, which did not work before but now works.

    So from my point of view, this could be released officially. 🎉

    Thanks a lot!

    Reacted by Liam Miller-Cushon
  14. cushon commented on Oct 5, 2023

    @cushon
    cushon
    on Oct 5, 2023
    Collaborator
    More actions

    Great, thank you for testing! I have published the release: https://github.com/google/google-java-format/releases/tag/v1.18.1

    Reacted by Philipp Wendler and bvo42
    Reacted by Philipp Wendler and bvo42
  15. cushon
    closed this as completedon Oct 5, 2023
  16. copybara-service
    added 5 commits that reference this issue on Oct 7, 2023

    Remove hard-coded versions from Eclipse plugin

    b963d59

    Remove hard-coded versions from Eclipse plugin

    a017eec

    Remove hard-coded versions from Eclipse plugin

    452f028

    Remove hard-coded versions from Eclipse plugin

    55e4d5f

    Remove hard-coded versions from Eclipse plugin

    73b62b0
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

    Eclipse

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.