forked from scenarioo/scenarioo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (40 loc) · 1.49 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
/**
* Used Version of Scenarioo Java Library for reading scenarioo docu data
*/
ext.scenariooApiVersion = '2.1.1'
/**
* Internal scenarioo format version of produced aggregation data (internal server format version).
*
* On import this version is stored for each build, if the format of a build does not correspond to this format, the
* build is automatically reimported again (all aggregation data recalculated in new format).
*
* First part of the version corresponds to library version that is supported, second part of the version depends on
* internal aggregation format. the second part should be increased whenever something important is changed in the
* internal format or the way that the aggregator is caluclating internal data on builds.
*/
ext.scenariooAggregatedDataFormatVersion = '2.1.0'
/**
* Name of the release branch of this scenarioo version, which is used for links to the versioned documentation.
*/
ext.scenariooReleaseBranch = 'release-3.0'
/*
* Gets the version name from the latest Git tag
* From: http://ryanharter.com/blog/2013/07/30/automatic-versioning-with-git-and-gradle/
*/
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = stdout
}
return stdout.toString().trim()
}
ext.versionWithGitCommit = getVersionName();
allprojects {
apply plugin: 'eclipse'
group = 'org.scenarioo'
version = getVersionName()
task wrapper(type: Wrapper) {
gradleVersion = '3.1'
}
}