Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73775] Replace call to removed CommitBuilder.setEncoding(String) #2578

Merged
merged 2 commits into from
Sep 16, 2024

Commits on Sep 16, 2024

  1. [JENKINS-73775] Replace call to removed CommitBuilder.setEncoding(Str…

    …ing)
    
    JGit 7.0.0 removed the setEncoding(String) method that had been
    deprecated previously.  The replacement is setEncoding(Charset).  The JGit
    documentation recommends commit.setEncoding(StandardCharsets.UTF_8)
    
    Failure was hidden by the previous setLastModified() exception because
    this call happens later in the same calling sequence.
    MarkEWaite committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    881f395 View commit details
    Browse the repository at this point in the history
  2. Exclude org.eclipse.jgit from transitive inclusion

    The org.eclipse.jgit jar file is already provided by the git client
    plugin.  Let's not risk that a 6.9.0 copy of the library is loaded into
    the same Java process that is running either JGit 6.10.0 (with git client
    plugin 5.0.0) or JGit 7.0.0 with git client plugin 6.0.0)
    MarkEWaite committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    5e8f82c View commit details
    Browse the repository at this point in the history