File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments