From c4c25484a9acacfa714d5364748667fcded2d65a Mon Sep 17 00:00:00 2001 From: Rene Groeschke Date: Wed, 27 May 2020 14:43:19 +0200 Subject: [PATCH] Tweak formatting --- .../org/elasticsearch/gradle/ElasticsearchJavaPlugin.java | 2 ++ .../gradle/precommit/DependencyLicensesTask.java | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/ElasticsearchJavaPlugin.java b/buildSrc/src/main/java/org/elasticsearch/gradle/ElasticsearchJavaPlugin.java index 89925d08dd8e1..19b04a48b53c0 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/ElasticsearchJavaPlugin.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/ElasticsearchJavaPlugin.java @@ -487,6 +487,8 @@ static void configureJars(Project project) { // we put all our distributable files under distributions jarTask.getDestinationDirectory().set(new File(project.getBuildDir(), "distributions")); // fixup the jar manifest + // Explicitly using an Action interface as java lambdas + // are not supported by Gradle up-to-date checks jarTask.doFirst(new Action() { @Override public void execute(Task task) { diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/DependencyLicensesTask.java b/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/DependencyLicensesTask.java index 81c4d35cbb15e..ff1d6186a42ce 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/DependencyLicensesTask.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/precommit/DependencyLicensesTask.java @@ -227,9 +227,9 @@ public void checkDependencies() throws IOException, NoSuchAlgorithmException { } - // this is just a marker output folder to allow this task being up-to-date - // the check logic is exception driven so a failed task will not be defined - // by this output but when successful we can safely mark the task as up-to-date + // This is just a marker output folder to allow this task being up-to-date. + // The check logic is exception driven so a failed tasks will not be defined + // by this output but when successful we can safely mark the task as up-to-date. @OutputDirectory public File getOutputMarker() { return new File(getProject().getBuildDir(), "dependencyLicense");