This commit is contained in:
Lanchon 2020-01-19 14:58:42 -03:00
parent d325da1c91
commit 4fe6ead964

View File

@ -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 ********************************"