@@ -65,8 +65,8 @@ tasks.getByName<ProcessResources>("processResources") {
65
65
if (name != " apis.json" ) {
66
66
// Only process main source-set resources (test files are large)
67
67
expand(
68
- " version" to version,
69
- " git_revision" to (if (rootProject.extra.has(" gitHashFull" )) rootProject.extra[" gitHashFull" ] else " unknown" )
68
+ " version" to version,
69
+ " git_revision" to (if (rootProject.extra.has(" gitHashFull" )) rootProject.extra[" gitHashFull" ] else " unknown" )
70
70
)
71
71
}
72
72
}
@@ -166,7 +166,7 @@ publishing {
166
166
// are the same as the one used in the dependency section below.
167
167
val xPathFactory = javax.xml.xpath.XPathFactory .newInstance()
168
168
val depSelector = xPathFactory.newXPath()
169
- .compile(" /project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']" )
169
+ .compile(" /project/dependencies/dependency[groupId/text() = 'org.elasticsearch.client']" )
170
170
val versionSelector = xPathFactory.newXPath().compile(" version" )
171
171
172
172
var foundVersion = false ;
@@ -282,15 +282,15 @@ licenseReport {
282
282
class SpdxReporter (val dest : File ) : ReportRenderer {
283
283
// License names to their SPDX identifier
284
284
val spdxIds = mapOf (
285
- " The Apache License, Version 2.0" to " Apache-2.0" ,
286
- " Apache License, Version 2.0" to " Apache-2.0" ,
287
- " The Apache Software License, Version 2.0" to " Apache-2.0" ,
288
- " BSD Zero Clause License" to " 0BSD" ,
289
- " Eclipse Public License 2.0" to " EPL-2.0" ,
290
- " Eclipse Public License v. 2.0" to " EPL-2.0" ,
291
- " Eclipse Public License - v 2.0" to " EPL-2.0" ,
292
- " GNU General Public License, version 2 with the GNU Classpath Exception" to " GPL-2.0 WITH Classpath-exception-2.0" ,
293
- " COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0" to " CDDL-1.0"
285
+ " The Apache License, Version 2.0" to " Apache-2.0" ,
286
+ " Apache License, Version 2.0" to " Apache-2.0" ,
287
+ " The Apache Software License, Version 2.0" to " Apache-2.0" ,
288
+ " BSD Zero Clause License" to " 0BSD" ,
289
+ " Eclipse Public License 2.0" to " EPL-2.0" ,
290
+ " Eclipse Public License v. 2.0" to " EPL-2.0" ,
291
+ " Eclipse Public License - v 2.0" to " EPL-2.0" ,
292
+ " GNU General Public License, version 2 with the GNU Classpath Exception" to " GPL-2.0 WITH Classpath-exception-2.0" ,
293
+ " COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0" to " CDDL-1.0"
294
294
)
295
295
296
296
private fun quote (str : String ): String {
0 commit comments