Skip to content

Commit

Permalink
git: add gson to pom for egit support (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbroadaway authored Jul 19, 2024
1 parent 7eaf2a6 commit 7f14e47
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks/git/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<properties>
<jgit.version>6.5.0.202303070854-r</jgit.version>
<egit.github.version>6.1.0.202203080745-r</egit.github.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -75,7 +76,15 @@
<dependency>
<groupId>org.eclipse.mylyn.github</groupId>
<artifactId>org.eclipse.egit.github.core</artifactId>
<version>6.1.0.202203080745-r</version>
<version>${egit.github.version}</version>
</dependency>
<!-- For some reason this isn't included in org.eclipse.egit.github.core's
transitive dependencies.
https://github.com/eclipse-egit/egit-github/blob/v6.1.0.202203080745-r/org.eclipse.egit.github.core/README.md#core-orgeclipseegitgithubcore -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.7</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package com.walmartlabs.concord.plugins.git;

/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2024 Walmart Inc., Concord Authors
* -----
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =====
*/

import org.eclipse.egit.github.core.client.GitHubClient;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertNotNull;

class GitHubCommonTest {

@Test
void testCreateClient() {
GitHubClient client = GitHubClient.createClient("https://mock.github.local");

assertNotNull(client);
}

}

0 comments on commit 7f14e47

Please sign in to comment.