diff options
Diffstat (limited to 'server/sonar-web/build.gradle')
-rw-r--r-- | server/sonar-web/build.gradle | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/server/sonar-web/build.gradle b/server/sonar-web/build.gradle index 4b42c238e36..d56a846ff3a 100644 --- a/server/sonar-web/build.gradle +++ b/server/sonar-web/build.gradle @@ -69,3 +69,17 @@ yarn_run { args = ['build'] } + +def sources = fileTree(dir: "src") + fileTree(dir: "scripts") + fileTree(dir: "config") + +task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) { + source = sources + if (release) exclude 'main/js/app/components/GlobalFooterBranding.js' +} +licenseMain.dependsOn licenseCheckWeb + +task licenseFormatWeb(type: com.hierynomus.gradle.license.tasks.LicenseFormat) { + source = sources + if (release) exclude 'main/js/app/components/GlobalFooterBranding.js' +} +licenseFormat.dependsOn licenseFormatWeb |