forked from nemerosa/versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
85 lines (74 loc) · 1.84 KB
/
build.gradle
File metadata and controls
85 lines (74 loc) · 1.84 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
84
85
/**
* Plug-in development
*/
plugins {
/**
* Build performance
*/
id 'com.gradle.build-scan' version '1.16'
/**
* Plugin
*/
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.11.0'
/**
* Versioning applied to itself
*/
id 'net.nemerosa.versioning' version '2.7.1'
/**
* Written in Groovy
*/
id 'groovy'
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
/**
* Meta information
*/
group = 'net.nemerosa'
version = versioning.info.display
/**
* Dependencies
*/
ext {
jgitVersion = '5.6.0.201912101111-r'
}
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile localGroovy()
compile 'org.ajoberstar.grgit:grgit-core:4.0.1'
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
*/
pluginBundle {
website = 'https://github.com/nemerosa/versioning/'
vcsUrl = 'https://github.com/nemerosa/versioning/'
description = 'Gradle plug-in that computes version information from the SCM'
tags = ['gradle', 'plugin', 'scm', 'git', 'svn', 'version']
}
gradlePlugin {
plugins {
versioningPlugin {
id = 'net.nemerosa.versioning'
displayName = 'Versioning plugin for Gradle'
description = 'Gradle plug-in that computes version information from the SCM'
implementationClass = 'net.nemerosa.versioning.VersioningPlugin'
}
}
}
test {
environment "GIT_TEST_BRANCH", "feature/456-cute"
environment "SVN_TEST_BRANCH", "feature-456-cute"
}