Skip to content

Commit 2af31c8

Browse files
authored
Merge pull request #514 from git-commit-id/update-deps
Update dependencies
2 parents 14b260c + 2cbb3ef commit 2af31c8

9 files changed

+18
-27
lines changed

core/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1818
<java.target>1.8</java.target>
1919

20-
<jgit.version>5.2.2.201904231744-r</jgit.version>
20+
<jgit.version>5.8.1.202007141445-r</jgit.version>
2121
</properties>
2222

2323
<dependencies>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>joda-time</groupId>
3333
<artifactId>joda-time</artifactId>
34-
<version>2.10.3</version>
34+
<version>2.10.6</version>
3535
</dependency>
3636
<!-- plexus build -->
3737
<dependency>
@@ -42,7 +42,7 @@
4242
<dependency>
4343
<groupId>com.fasterxml.jackson.core</groupId>
4444
<artifactId>jackson-databind</artifactId>
45-
<version>2.11.1</version>
45+
<version>2.11.2</version>
4646
</dependency>
4747
<dependency>
4848
<groupId>com.google.code.findbugs</groupId>

maven/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<maven-plugin-api.version>3.0</maven-plugin-api.version>
3333
<maven-plugin-plugin.version>3.6.0</maven-plugin-plugin.version>
3434

35-
<junit.version>4.12</junit.version>
35+
<junit.version>4.13</junit.version>
3636
<mockito.version>3.1.0</mockito.version>
3737

3838
<fest-assert.version>1.4</fest-assert.version>

maven/src/test/java/pl/project13/core/GitDataProviderTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
package pl.project13.core;
1919

2020
import org.junit.Test;
21-
import pl.project13.core.GitCommitIdExecutionException;
22-
import pl.project13.core.GitCommitPropertyConstant;
23-
import pl.project13.core.GitDataProvider;
2421
import pl.project13.core.log.LoggerBridge;
2522

2623
import java.util.Properties;

maven/src/test/java/pl/project13/core/JgitProviderAheadBehindTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package pl.project13.core;
1919

20-
import pl.project13.core.JGitProvider;
2120
import pl.project13.maven.git.AheadBehindTest;
2221

2322
import java.nio.file.Paths;

maven/src/test/java/pl/project13/core/NativeProviderAheadBehindTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package pl.project13.core;
1919

20-
import pl.project13.core.NativeGitProvider;
2120
import pl.project13.maven.git.AheadBehindTest;
2221

2322
public class NativeProviderAheadBehindTest extends AheadBehindTest<NativeGitProvider> {

maven/src/test/java/pl/project13/core/PropertiesFileGeneratorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import pl.project13.core.log.StdOutLoggerBridge;
2828

2929
import java.io.IOException;
30-
import java.nio.charset.StandardCharsets;
3130
import java.nio.file.Files;
3231
import java.nio.file.Path;
3332
import java.util.Properties;

maven/src/test/java/pl/project13/core/UriUserInfoRemoverTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
import junitparams.JUnitParamsRunner;
2929
import junitparams.Parameters;
30-
import pl.project13.core.GitCommitIdExecutionException;
31-
import pl.project13.core.GitDataProvider;
3230

3331
import java.util.Arrays;
3432
import java.util.Collection;

maven/src/test/java/pl/project13/maven/git/AheadBehindTest.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@
1717

1818
package pl.project13.maven.git;
1919

20-
import static org.junit.Assert.assertThat;
21-
2220
import java.io.File;
2321

2422
import org.eclipse.jgit.api.Git;
2523
import org.eclipse.jgit.lib.ConfigConstants;
2624
import org.eclipse.jgit.lib.StoredConfig;
27-
import org.hamcrest.CoreMatchers;
2825
import org.junit.After;
2926
import org.junit.Before;
3027
import org.junit.Rule;
@@ -33,6 +30,8 @@
3330
import pl.project13.core.AheadBehind;
3431
import pl.project13.core.GitProvider;
3532

33+
import static org.junit.Assert.assertEquals;
34+
3635
public abstract class AheadBehindTest<T extends GitProvider> {
3736

3837
@Rule
@@ -87,8 +86,8 @@ protected void extraSetup() {
8786
public void shouldNotBeAheadOrBehind() throws Exception {
8887

8988
AheadBehind aheadBehind = gitProvider.getAheadBehind();
90-
assertThat(aheadBehind.ahead(), CoreMatchers.is("0"));
91-
assertThat(aheadBehind.behind(), CoreMatchers.is("0"));
89+
assertEquals(aheadBehind.ahead(), "0");
90+
assertEquals(aheadBehind.behind(), "0");
9291
}
9392

9493
@Test
@@ -97,8 +96,8 @@ public void shouldBe1Ahead() throws Exception {
9796
createLocalCommit();
9897

9998
AheadBehind aheadBehind = gitProvider.getAheadBehind();
100-
assertThat(aheadBehind.ahead(), CoreMatchers.is("1"));
101-
assertThat(aheadBehind.behind(), CoreMatchers.is("0"));
99+
assertEquals(aheadBehind.ahead(),"1");
100+
assertEquals(aheadBehind.behind(),"0");
102101
}
103102

104103
@Test
@@ -107,8 +106,8 @@ public void shouldBe1Behind() throws Exception {
107106
createCommitInSecondRepoAndPush();
108107

109108
AheadBehind aheadBehind = gitProvider.getAheadBehind();
110-
assertThat(aheadBehind.ahead(), CoreMatchers.is("0"));
111-
assertThat(aheadBehind.behind(), CoreMatchers.is("1"));
109+
assertEquals(aheadBehind.ahead(),"0");
110+
assertEquals(aheadBehind.behind(),"1");
112111
}
113112

114113
@Test
@@ -118,8 +117,8 @@ public void shouldBe1AheadAnd1Behind() throws Exception {
118117
createCommitInSecondRepoAndPush();
119118

120119
AheadBehind aheadBehind = gitProvider.getAheadBehind();
121-
assertThat(aheadBehind.ahead(), CoreMatchers.is("1"));
122-
assertThat(aheadBehind.behind(), CoreMatchers.is("1"));
120+
assertEquals(aheadBehind.ahead(),"1");
121+
assertEquals(aheadBehind.behind(),"1");
123122
}
124123

125124
protected void createLocalCommit() throws Exception {

maven/src/test/java/pl/project13/maven/git/GitCommitIdMojoIntegrationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public void shouldNotUseBuildEnvironmentBranchInfoWhenParameterSet(boolean useNa
287287
// reset repo and force detached HEAD
288288
try (final Git git = git("my-jar-project")) {
289289
git.reset().setMode(ResetCommand.ResetType.HARD).setRef("b6a73ed").call();
290-
git.checkout().setCreateBranch(true).setName("test_branch").setForce(true).call();
290+
git.checkout().setCreateBranch(true).setName("test_branch").setForceRefUpdate(true).call();
291291
}
292292

293293
// when
@@ -375,7 +375,7 @@ private void shouldUseJenkinsBranchInfoWhenAvailableHelperAndAssertBranch(boolea
375375
// reset repo and force detached HEAD
376376
try (final Git git = git("my-jar-project")) {
377377
git.reset().setMode(ResetCommand.ResetType.HARD).setRef("b6a73ed").call();
378-
git.checkout().setName("b6a73ed").setForce(true).call();
378+
git.checkout().setName("b6a73ed").setForceRefUpdate(true).call();
379379
}
380380

381381
// when
@@ -1527,8 +1527,8 @@ public void verifyEvalOnCommitWithTwoBranches(boolean useNativeGit) throws Excep
15271527
// 2343428 - Moved master - Fri, 29 Nov 2013 10:38:34 +0100 (HEAD, branch: master)
15281528
try (final Git git = git("my-jar-project")) {
15291529
git.reset().setMode(ResetCommand.ResetType.HARD).setRef("2343428").call();
1530-
git.checkout().setCreateBranch(true).setName("another_branch").setForce(true).call();
1531-
git.checkout().setCreateBranch(true).setName("z_branch").setForce(true).call();
1530+
git.checkout().setCreateBranch(true).setName("another_branch").setForceRefUpdate(true).call();
1531+
git.checkout().setCreateBranch(true).setName("z_branch").setForceRefUpdate(true).call();
15321532
}
15331533

15341534
mojo.useNativeGit = useNativeGit;

0 commit comments

Comments
 (0)