From 0a0262643a3399b3c222e2caa15c7287de338023 Mon Sep 17 00:00:00 2001 From: Louis Bergelson Date: Mon, 1 Jul 2024 12:31:28 -0400 Subject: [PATCH] Update build.gradle to use new configuration syntax --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f345676..f632311 100644 --- a/build.gradle +++ b/build.gradle @@ -53,7 +53,7 @@ java { withSourcesJar() } -tasks.withType(Javadoc) { +tasks.withType(Javadoc).configureEach { // the title includes the version of the API title = "http-nio $version API" @@ -83,7 +83,7 @@ tasks.withType(Javadoc) { } // test task -tasks.withType(Test) { +tasks.withType(Test).configureEach { // tests could be always re-run outputs.upToDateWhen { false } @@ -117,7 +117,7 @@ tasks.withType(Test) { } // for jar tasks -tasks.withType(Jar) { +tasks.withType(Jar).configureEach { // add license from(rootProject.projectDir) { include "LICENSE.txt"