]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20258 invoke licenseFormat and generatePackageInfo when calling build
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Fri, 25 Aug 2023 09:46:07 +0000 (11:46 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 25 Aug 2023 20:02:41 +0000 (20:02 +0000)
build.gradle

index 9d9f525b57ea3b1e9a8e5e142dc439405400ad1a..79455b8498a34c3b3465743c3c13fe71b8b18919 100644 (file)
@@ -480,6 +480,7 @@ subprojects {
       }
     }
   }
+  build.dependsOn(generatePackageInfo)
   generatePackageInfo.finalizedBy(licenseFormat)
 
   jacocoTestReport {
@@ -583,6 +584,7 @@ subprojects {
 
   license {
     header = rootProject.file('HEADER')
+    ignoreFailures = project.hasProperty('ignoreLicenseFailures') ? project.getProperty('ignoreLicenseFailures').toBoolean() : true
     strictCheck true
     encoding = 'UTF-8'
     mapping {