Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-73775] Replace call to removed CommitBuilder.setEncoding(Str…
…ing) (#2578) * [JENKINS-73775] Replace call to removed CommitBuilder.setEncoding(String) 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. * 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)
- Loading branch information