Skip to content

Commit 7b5e5be

Browse files
committed
scm-wf support added
1 parent dfc0458 commit 7b5e5be

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sourceCompatibility = JavaVersion.VERSION_1_7
1212
targetCompatibility = JavaVersion.VERSION_1_7
1313

1414
group = 'org.scm4j'
15-
version = '4.0-SNAPSHOT'
15+
version = file('version').text.trim()
1616

1717
configurations.all {
1818
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
@@ -34,12 +34,17 @@ repositories {
3434
}
3535

3636
dependencies {
37-
compile 'com.github.scm4j:scm4j-vcs-api:master-SNAPSHOT'
37+
// load managed dependencies
38+
def s = '[ \t]*', w = '[^:#@]+?'
39+
(file('mdeps').text =~ /(?m)^$s($w):($w):($w)?(:$w)?(@$w)?$s(?:#$s($w)?$s)?$/).each {
40+
match, group, name, version, classifier, ext, configuration ->
41+
add(configuration ?: name.contains('test') ? 'testCompile' : 'compile', "$group:$name:${version?:''}${classifier?:''}${ext?:''}")
42+
}
3843
compile 'org.eclipse.jgit:org.eclipse.jgit:4.3.0.201604071810-r'
3944

4045
testCompile 'org.mockito:mockito-core:2.0.62-beta'
4146
testCompile 'junit:junit:4.12'
42-
testCompile 'com.github.scm4j:scm4j-vcs-test:master-SNAPSHOT'
47+
// testCompile 'com.github.scm4j:scm4j-vcs-test:master-SNAPSHOT'
4348
}
4449

4550
task sourcesJar(type: Jar, dependsOn: classes) {

mdeps

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.scm4j:scm4j-vcs-api:-SNAPSHOT
2+
org.scm4j:scm4j-vcs-test:-SNAPSHOT

version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0-SNAPSHOT

0 commit comments

Comments
 (0)