forked from ajoberstar/grgit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (57 loc) · 1.51 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
plugins {
id 'org.ajoberstar.defaults' version '0.7.3'
id 'groovy'
}
group = 'org.ajoberstar'
description = 'The Groovy way to use Git.'
sourceCompatibility = '1.7'
repositories {
mavenCentral()
}
def jgitVersion = '4.5.2.201704071617-r'
dependencies {
// groovy
compileOnly 'org.codehaus.groovy:groovy-all:2.4.10'
testCompile 'org.codehaus.groovy:groovy-all:2.4.10'
// jgit
compile "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
compile "org.eclipse.jgit:org.eclipse.jgit.ui:$jgitVersion"
// agentproxy
['jsch', 'pageant', 'sshagent', 'usocket-jna', 'usocket-nc'].each {
compile "com.jcraft:jsch.agentproxy.${it}:0.0.9"
}
// agentproxy pulls this in, but we need to force a newer version
compile 'com.jcraft:jsch:0.1.54'
// logging
compile 'org.slf4j:slf4j-api:1.7.25'
testRuntime 'org.slf4j:slf4j-simple:1.7.25'
// testing
testCompile('org.spockframework:spock-core:1.0-groovy-2.4') { exclude group: 'org.codehaus.groovy' }
}
test {
useJUnit {
excludeCategories 'org.ajoberstar.grgit.fixtures.PlatformSpecific'
}
}
['Windows', 'Linux', 'Mac'].each { platform ->
tasks.create("test${platform}", Test) {
useJUnit {
includeCategories "org.ajoberstar.grgit.fixtures.${platform}Specific"
}
System.properties.each { key, value ->
if (key.startsWith('org.ajoberstar.grgit.test')) {
systemProperties((key): value)
}
}
}
}
model {
bintray {
owner = 'ajoberstar'
repo = 'maven'
pkg = 'grgit'
}
}
wrapper {
gradleVersion = '3.3'
}