aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/build.gradle
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-03-21 17:33:08 +0100
committerJanos Gyerik <janos.gyerik@sonarsource.com>2018-04-04 14:25:32 +0200
commitc9e60ded9b8ffe4f97c73447c3ceda6919662a1e (patch)
tree63e1e5d45933b59563a699285f36dc0d316340c2 /server/sonar-web/build.gradle
parentfc34c6d43e123cf7e789232b4cd40b470a18b33e (diff)
downloadsonarqube-c9e60ded9b8ffe4f97c73447c3ceda6919662a1e.tar.gz
sonarqube-c9e60ded9b8ffe4f97c73447c3ceda6919662a1e.zip
BUILD-612 Implement the check of source headers
Diffstat (limited to 'server/sonar-web/build.gradle')
-rw-r--r--server/sonar-web/build.gradle14
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