mirror of
https://github.com/revanced/multidexlib2.git
synced 2025-04-29 22:24:28 +02:00
Add 'checkCopyrightNotice' build task
This commit is contained in:
parent
cf93ebd42a
commit
027404b80a
19
build.gradle
19
build.gradle
@ -118,6 +118,25 @@ signing {
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
wrapper {
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user