From 4fe6ead9648da36f09d63d1e6c90501c75c16e34 Mon Sep 17 00:00:00 2001 From: Lanchon Date: Sun, 19 Jan 2020 14:58:42 -0300 Subject: [PATCH] Cosmetic --- check-copyright.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check-copyright.gradle b/check-copyright.gradle index 88f5567..9b93d9a 100644 --- a/check-copyright.gradle +++ b/check-copyright.gradle @@ -8,9 +8,11 @@ * or (at your option) any later version. */ +import java.text.SimpleDateFormat + task checkCopyrightNotice { dependsOn { subprojects*.tasks.build } - def notice = "Copyright 2015-${new java.text.SimpleDateFormat('yyyy').format(new Date())}" + def notice = "Copyright 2015-${new SimpleDateFormat('yyyy').format(new Date())}" def checkNotice = { noticeFile -> if (!file(noticeFile).text.contains(notice)) { System.err.println "******************************** WARNING ********************************"