forked from nemerosa/versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (73 loc) · 1.75 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/**
* Plug-in development
*/
plugins {
id 'nu.studer.plugindev' version '1.0.3'
id 'com.jfrog.bintray' version '1.3.1'
/**
* Versioning applied to itself
*/
id 'net.nemerosa.versioning' version '2.5.0'
}
apply plugin: 'groovy'
/**
* Meta information
*/
group = 'net.nemerosa'
version = versioning.info.display
/**
* Dependencies
*/
ext {
jgitVersion = '4.5.0.201609210915-r'
}
dependencies {
localGroovy()
compile 'org.ajoberstar:grgit:1.7.0'
compile "org.eclipse.jgit:org.eclipse.jgit.ui:${jgitVersion}"
compile "org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}"
compile 'org.tmatesoft.svnkit:svnkit:1.8.12'
testCompile "junit:junit:4.12"
testCompile "commons-lang:commons-lang:2.6"
testCompile "commons-io:commons-io:2.5"
}
/**
* Plug-in definition
*/
plugindev {
pluginImplementationClass 'net.nemerosa.versioning.VersioningPlugin'
pluginDescription 'Gradle plug-in that computes version information from the SCM'
pluginLicenses 'MIT'
pluginTags 'gradle', 'plugin', 'scm', 'git', 'svn', 'version'
authorId 'dcoraboeuf'
authorName 'Damien Coraboeuf'
authorEmail '[email protected]'
projectUrl 'https://github.com/nemerosa/versioning'
projectInceptionYear '2015'
done()
}
/**
* Plug-in publication
*/
bintray {
user = bintrayUser
key = bintrayApiKey
pkg {
repo = 'nemerosa'
version {
attributes = [
'gradle-plugin': 'net.nemerosa.versioning:net.nemerosa:versioning'
]
}
}
}
/**
* Wrapper definition
*/
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
test {
environment "GIT_TEST_BRANCH", "feature/456-cute"
environment "SVN_TEST_BRANCH", "feature-456-cute"
}