File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 20
20
// 2) notice file
21
21
// 3) checksum validation/ generation.
22
22
23
+ // WARNING: The tasks in this file share internal state between tasks without using files.
24
+ // Because of this all tasks here must always execute together, so they cannot define task outputs.
25
+ // TODO: Rewrite the internal state to use state files containing the ext.jarInfos and its referencedFiles
26
+
23
27
// This should be false only for debugging.
24
28
def failOnError = true
25
29
@@ -194,13 +198,6 @@ subprojects {
194
198
description = " Validate license and notice files of dependencies"
195
199
dependsOn collectJarInfos
196
200
197
- def outputFileName = ' validateJarLicenses'
198
- inputs. dir(file(project. rootDir. path + ' /lucene/licenses' ))
199
- .withPropertyName(' licenses' )
200
- .withPathSensitivity(PathSensitivity . RELATIVE )
201
- outputs. file(layout. buildDirectory. file(outputFileName))
202
- .withPropertyName(' validateJarLicensesResult' )
203
-
204
201
doLast {
205
202
def errors = []
206
203
jarInfos. each { dep ->
@@ -246,9 +243,7 @@ subprojects {
246
243
}
247
244
}
248
245
}
249
- // Required to take advantage of incremental building and the build cache
250
- def f = new File (project. buildDir. path + " /" + outputFileName)
251
- f. write(errors. toString(), " UTF-8" )
246
+
252
247
if (errors) {
253
248
def msg = " Certain license/ notice files are missing:\n - " + errors. join(" \n - " )
254
249
if (failOnError) {
Original file line number Diff line number Diff line change @@ -405,6 +405,12 @@ Bug Fixes
405
405
406
406
* GITHUB#13691: Fix incorrect exponent value in explain of SigmoidFunction. (Owais Kazi)
407
407
408
+ Build
409
+ ---------------------
410
+
411
+ * GITHUB#13695, GITHUB#13696: Fix Gradle build sometimes gives spurious "unreferenced license file" warnings.
412
+ (Uwe Schindler)
413
+
408
414
Other
409
415
--------------------
410
416
(No changes)
You can’t perform that action at this time.
0 commit comments