mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-04-29 22:24:28 +02:00
29 lines
1.0 KiB
Groovy
29 lines
1.0 KiB
Groovy
/*
|
|
* multidexlib2 - Copyright 2015-2020 Rodrigo Balerdi
|
|
* (GNU General Public License version 3 or later)
|
|
*
|
|
* multidexlib2 is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published
|
|
* by the Free Software Foundation, either version 3 of the License,
|
|
* or (at your option) any later version.
|
|
*/
|
|
|
|
task checkCopyrightNotice {
|
|
dependsOn { subprojects*.tasks.build }
|
|
def notice = "Copyright 2015-${new java.text.SimpleDateFormat('yyyy').format(new Date())}"
|
|
def checkNotice = { noticeFile ->
|
|
if (!file(noticeFile).text.contains(notice)) {
|
|
System.err.println "******************************** WARNING ********************************"
|
|
System.err.println "Expired copyright notice: ${noticeFile}"
|
|
System.err.println "***************************************************************************"
|
|
}
|
|
}
|
|
doLast {
|
|
checkNotice 'NOTICE.txt'
|
|
}
|
|
}
|
|
|
|
build {
|
|
dependsOn checkCopyrightNotice
|
|
}
|