Skip to content

Commit 3ecf24d

Browse files
committed
Merge branch 'master' into B1
# Conflicts: # build.gradle
2 parents 39e5228 + 70379f2 commit 3ecf24d

File tree

6 files changed

+821
-426
lines changed

6 files changed

+821
-426
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: java
2+
before_install:
3+
- chmod +x gradlew
4+
before_cache:
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7+
cache:
8+
directories:
9+
- $HOME/.gradle/caches/
10+
- $HOME/.gradle/wrapper/
11+
after_success:
12+
- ./gradlew jacocoTestReport coveralls
13+

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
[![Release](https://jitpack.io/v/scm4j/scm4j-vcs-git.svg)](https://jitpack.io/#scm4j/scm4j-vcs-git)
1+
[![Release](https://jitpack.io/v/scm4j/scm4j-vcs-git.svg)](https://jitpack.io/#scm4j/scm4j-vcs-git)
2+
[![Build Status](https://travis-ci.org/scm4j/scm4j-vcs-git.svg?branch=master)](https://travis-ci.org/scm4j/scm4j-vcs-git)
3+
[![Coverage Status](https://coveralls.io/repos/github/scm4j/scm4j-vcs-git/badge.svg?branch=master)](https://coveralls.io/github/scm4j/scm4j-vcs-git?branch=master)
24

35
# Overview
46
scm4j-vcs-git is lightweight library for execute basic Git VCS operations (merge, branch create etc). It uses [scm4j-vcs-api](https://github.com/scm4j/scm4j-vcs-api) exposing IVCS implementation for Git repositories and [JGit](https://eclipse.org/jgit/) as framework to work with Git repositories.
@@ -39,22 +41,15 @@ Features:
3941
}
4042
```
4143
Or download release jars from https://github.com/scm4j/scm4j-vcs-git/releases
42-
- Create Workspace Home instance providing path to any folder as Workspace Home folder path. This folder will contain repositories folders (if different vcs or repositories are used)
43-
```java
44+
- Code snippet
45+
```java
4446
public static final String WORKSPACE_DIR = System.getProperty("java.io.tmpdir") + "git-workspaces";
45-
...
4647
IVCSWorkspace workspace = new VCSWorkspace(WORKSPACE_DIR);
47-
...
48-
```
49-
- Obtain Repository Workspace from Workspace Home providing a certain Repository's url. The obtained Repository Workspace will represent a folder within Workspace Home dir which will contain all Working Copies relating to the provided VCS Repository
50-
```java
5148
String repoUrl = "https://github.com/MyUser/MyRepo";
5249
IVCSRepositoryWorkspace repoWorkspace = workspace.getVCSRepositoryWorkspace(repoUrl);
53-
```
54-
- Create `GitVCS` instance providing Repository Workspace
55-
```java
5650
IVCS vcs = new GitVCS(repoWorkspace);
57-
```
51+
vcs.setCredentials("user", "password"); // if necessary
52+
```
5853
- Use methods of `IVCS` interface. See [scm4j-vcs-api](https://github.com/scm4j/scm4j-vcs-api) for details
5954
- Use `vcs.setProxy()` and `vcs.setCredentials()` if necessary
6055

build.gradle

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1+
plugins {
2+
id 'jacoco'
3+
id 'com.github.kt3k.coveralls' version '2.8.1'
4+
}
5+
16
apply plugin: 'java'
27
apply plugin: 'maven'
8+
apply plugin: 'eclipse'
9+
apply plugin: 'idea'
310

411
sourceCompatibility = JavaVersion.VERSION_1_7
512
targetCompatibility = JavaVersion.VERSION_1_7
613

714
group = 'org.scm4j'
8-
version = '2.0'
15+
version = '3.0'
16+
17+
jacocoTestReport {
18+
reports {
19+
xml.enabled = true // coveralls plugin depends on xml format report
20+
html.enabled = true
21+
}
22+
}
23+
924

1025
repositories {
1126
mavenCentral()

0 commit comments

Comments
 (0)