forked from ajoberstar/grgit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (66 loc) · 1.72 KB
/
build.gradle
File metadata and controls
83 lines (66 loc) · 1.72 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'groovy'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.0'
id 'org.ajoberstar.defaults' version '0.5.0'
}
group = 'org.ajoberstar'
description = 'The Groovy way to use Git.'
defaults {
id = 'ajoberstar'
bintrayRepo = 'libraries'
bintrayLabels = ['groovy', 'git']
developers = [
[id: 'ajoberstar', name: 'Andrew Oberstar', email: 'andrew@ajoberstar.org']
]
copyrightYears = '2012-2015'
}
sourceCompatibility = '1.7'
repositories {
mavenCentral()
}
def jgitVersion = '3.6.2.201501210735-r'
// def jgitVersion = '3.3.2.201404171909-r' // pre-bug
// def jgitVersion = '3.4.1.201406201815-r' // behavior of log command is different
dependencies {
// groovy
compile localGroovy()
// 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.7"
}
// logging
compile 'org.slf4j:slf4j-api:1.7.7'
testRuntime 'org.slf4j:slf4j-simple:1.7.7'
// testing
testCompile 'junit:junit:4.11'
testCompile('org.spockframework:spock-core:0.7-groovy-2.0') { exclude group: 'org.codehaus.groovy' }
}
tasks.withType(Test) {
reports {
junitXml.outputPerTestCase = true
}
}
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)
}
}
}
}
wrapper {
gradleVersion = '2.1'
}