Skip to content

Commit

Permalink
feat: stepping JGit and JsonPath dependencies (#179)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: JGit major version from 5 to 6 and require Java 11 (refs #177)
  • Loading branch information
tomasbjerre committed Jan 27, 2024
1 parent ab5307f commit cc817d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 31 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ dependencies {

implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.jayway.jsonpath:json-path:2.7.0'
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.1.202206130422-r'
implementation 'com.jayway.jsonpath:json-path:2.9.0'
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.8.0.202311291450-r'
implementation 'org.gitlab:java-gitlab-api:4.1.1'
implementation 'com.fasterxml.jackson.core:jackson-core:2.15.2' // Transitive from java-gitlab-api
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2' // Transitive from java-gitlab-api
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.2' // Transitive from java-gitlab-api

testImplementation 'org.slf4j:slf4j-simple:1.8.0-beta2' // Same as JGit
testImplementation 'org.slf4j:slf4j-simple:1.8.0-beta2' // Same as java-gitlab-api
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'com.approvaltests:approvaltests:18.5.0'
testImplementation 'org.mockito:mockito-core:5.2.0'
testImplementation 'org.assertj:assertj-core:3.25.2'
testImplementation 'com.approvaltests:approvaltests:22.3.3'
testImplementation 'org.mockito:mockito-core:5.10.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
import com.google.gson.GsonBuilder;
import org.approvaltests.Approvals;
import org.approvaltests.core.Options;
import org.approvaltests.reporters.AutoApproveReporter;
import se.bjurr.gitchangelog.api.GitChangelogApi;

public class ApprovalsWrapper {
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
private static final String SEPARATOR = "\n\n---------------------------------------------\n\n";

public static void verify(GitChangelogApi given) throws Exception {
String changelogContext = GSON.toJson(given.getChangelog());
String changelog = given.render();
Object actual =
public static void verify(final GitChangelogApi given) throws Exception {
final String changelogContext = GSON.toJson(given.getChangelog());
final String changelog = given.render();
final Object actual =
new Object() {
@Override
public String toString() {
Expand Down
21 changes: 0 additions & 21 deletions src/test/java/se/bjurr/gitchangelog/test/AutoApproveReporter.java

This file was deleted.

0 comments on commit cc817d6

Please sign in to comment.