@@ -65,7 +65,7 @@ subprojects {
65
65
66
66
tasks. withType(JavaCompile ) {
67
67
' all -processing -rawtypes -serial' . split(). each {
68
- options. compilerArgs << " -Xlint:${ it} "
68
+ options. compilerArgs << " -Xlint:${ it} " . toString()
69
69
}
70
70
71
71
options. compilerArgs << ' -Werror'
@@ -139,7 +139,7 @@ gradle.projectsEvaluated {
139
139
}
140
140
141
141
def mavenProjectDescription = {
142
- name project. mavenName ?: project. name
142
+ name = project. mavenName ?: project. name
143
143
if (project. description) {
144
144
description project. description
145
145
}
@@ -148,7 +148,7 @@ gradle.projectsEvaluated {
148
148
developers {
149
149
developer {
150
150
id ' mgeipel'
151
- name ' Markus M. Geipel'
151
+ name = ' Markus M. Geipel'
152
152
email ' m.geipel@dnb.de'
153
153
url ' https://github.com/mgeipel'
154
154
roles {
@@ -158,7 +158,7 @@ gradle.projectsEvaluated {
158
158
}
159
159
developer {
160
160
id ' cboehme'
161
- name ' Christoph Böhme'
161
+ name = ' Christoph Böhme'
162
162
email ' c.boehme@dnb.de'
163
163
url ' https://github.com/cboehme'
164
164
roles {
@@ -168,18 +168,18 @@ gradle.projectsEvaluated {
168
168
}
169
169
}
170
170
organization {
171
- name ' Metafacture'
171
+ name = ' Metafacture'
172
172
url ' https://github.com/metafacture'
173
173
}
174
174
licenses {
175
175
license {
176
- name ' The Apache License, Version 2.0'
176
+ name = ' The Apache License, Version 2.0'
177
177
url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
178
178
}
179
179
}
180
180
mailingLists {
181
181
mailingList {
182
- name ' Metafacture Mailing List'
182
+ name = ' Metafacture Mailing List'
183
183
post ' metafacture@lists.dnb.de'
184
184
subscribe ' metafacture-subscribe@lists.dnb.de'
185
185
unsubscribe ' metafacture-unsubscribe@lists.dnb.de'
@@ -286,7 +286,6 @@ class ScmInfo {
286
286
}
287
287
288
288
def getScmInfo () {
289
- def version = null
290
289
def tag = getGitTag()
291
290
if (tag != null ) {
292
291
logger. lifecycle(' SCM tag found. Making a release build' )
@@ -304,11 +303,11 @@ def getSnapshotVersion() {
304
303
logger. warn(' No Git repository found' )
305
304
return ' non-scm-build-SNAPSHOT'
306
305
}
307
- if (grgit. branch. current(). fullName. equals( ' HEAD' ) ) {
306
+ if (grgit. branch. current(). fullName == ' HEAD' ) {
308
307
logger. lifecycle(' Detached HEAD found' )
309
308
return " commit-${ grgit.head().id} -SNAPSHOT"
310
309
}
311
- if (grgit. branch. current(). name. equals( ' master' ) ) {
310
+ if (grgit. branch. current(). name == ' master' ) {
312
311
logger. lifecycle(' On master branch' )
313
312
return ' master-SNAPSHOT'
314
313
}
0 commit comments