Skip to content

Commit faa6712

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 0460ceb commit faa6712

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ private static TaskProvider<Task> registerCheckMlCppNoticeTask(
105105
) {
106106
TaskProvider<Task> checkMlCppNoticeTask = project.getTasks().register("checkMlCppNotice", task -> {
107107
task.dependsOn(checkExtraction);
108-
final Provider<Path> noticePath = checkExtraction.map(c ->
109-
c.getDestinationDir()
110-
.toPath()
111-
.resolve("elasticsearch-" + VersionProperties.getElasticsearch() + "/modules/x-pack-ml/NOTICE.txt"));
108+
final Provider<Path> noticePath = checkExtraction.map(
109+
c -> c.getDestinationDir()
110+
.toPath()
111+
.resolve("elasticsearch-" + VersionProperties.getElasticsearch() + "/modules/x-pack-ml/NOTICE.txt")
112+
);
112113
ListProperty<String> expectedMlLicenses = extension.expectedMlLicenses;
113114
task.doLast(new Action<Task>() {
114115
@Override
@@ -121,7 +122,9 @@ public void execute(Task task) {
121122
actualLines = Files.readAllLines(noticePath.get());
122123
for (final String expectedLine : expectedLines) {
123124
if (actualLines.contains(expectedLine) == false) {
124-
throw new GradleException("expected [" + noticePath.get() + " to contain [" + expectedLine + "] but it did not");
125+
throw new GradleException(
126+
"expected [" + noticePath.get() + " to contain [" + expectedLine + "] but it did not"
127+
);
125128
}
126129
}
127130
} catch (IOException ioException) {

0 commit comments

Comments
 (0)