-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
107 lines (86 loc) · 2.56 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.3.4'
id 'org.sonarqube' version '2.0.1'
id 'com.bmuschko.nexus' version '2.3.1'
}
description = 'eemws-core-parent'
scmVersion {
tag {
prefix = ''
}
// Incrementing policy
versionIncrementer 'incrementMinor' // default
branchVersionIncrementer = [
'master': 'incrementPrerelease',
'release/.*': 'incrementPrerelease',
'hotfix/.*': 'incrementPrerelease'
]
// Decorators
versionCreator 'simple'
//branchVersionCreator = [
// 'feature/.*': 'versionWithBranch'
//]
localOnly = true // no pushing to remote
ignoreUncommittedChanges = false // add -SNAPSHOT if uncommited changes
}
allprojects {
version = scmVersion.version
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
//apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'
group = 'es.ree.eemws'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenLocal()
maven { url "http://repo.maven.apache.org/maven2" }
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
modifyPom {
project {
//name 'eemws-core-parent'
//description 'eemws-core libraries'
url 'https://bitbucket.org/smree/eemws-core'
inceptionYear '2014'
scm {
url 'https://bitbucket.org/smree/eemws-core'
connection 'scm:https://bitbucket.org/smree/eemws-core.git'
developerConnection 'scm:git://bitbucket.org:smree/eemws-core.git'
}
licenses {
license {
name 'GNU General Lesser Public License (LGPL) version 3.0'
url 'https://www.gnu.org/licenses/lgpl-3.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'e-jimenez'
name 'Enrique Jiménez Raya'
email 'ejimenez@ree.es'
}
developer {
id 'agusmba'
name 'Agustín Martín Barbero'
email 'ambarbero@ree.es'
}
}
}
}
}
project(":eemws-core") {
sonarqube {
properties {
property "sonar.exclusions", "generated-sources/**"
}
}
}
logger.lifecycle "-----------------------------------------" + '-' * version.toString().length()
logger.lifecycle " IEC62325-504 core libraries - version: $version "
logger.lifecycle "-----------------------------------------" + '-' * version.toString().length()