From 8128f3090af9c3701bbdc7d99ff62bf9dd95d268 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 19 Feb 2020 10:11:02 +0000 Subject: [PATCH] Polish "Include LICENCE and NOTICE files in shipped jars" See gh-20058 --- .../org/springframework/boot/build/ConventionsPlugin.java | 8 ++++---- buildSrc/src/main/resources/NOTICE.txt | 2 +- .../boot/build/ConventionsPluginTests.java | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java index 52ca3edf20..b4d5231433 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java @@ -23,7 +23,6 @@ import java.io.InputStreamReader; import java.net.URISyntaxException; import java.net.URL; import java.nio.charset.StandardCharsets; -import java.time.Year; import java.util.List; import java.util.Map; import java.util.TreeMap; @@ -77,7 +76,8 @@ import org.springframework.util.FileCopyUtils; *
  • {@link JavaCompile}, {@link Javadoc}, and {@link FormatTask} tasks are configured * to use UTF-8 encoding *
  • {@link JavaCompile} tasks are configured to use {@code -parameters} - *
  • {@link Jar} tasks are configured to have the following manifest entries: + *
  • {@link Jar} tasks are configured to produce jars with LICENSE.txt and NOTICE.txt + * files and the following manifest entries: *