diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-01-06 14:49:40 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-01-07 20:46:09 +0100 |
commit | a8c3a0cf64f812e9f53579a8536a55cf0d40c5ec (patch) | |
tree | 36d06b74aab5d7a4c24a40b3eae966c1753d6d09 | |
parent | f36b4c4826f81e51d3639a9dfb5ee550529880cb (diff) | |
download | sonarqube-a8c3a0cf64f812e9f53579a8536a55cf0d40c5ec.tar.gz sonarqube-a8c3a0cf64f812e9f53579a8536a55cf0d40c5ec.zip |
Add licenseFormat Gradle task to sonar-docs
-rw-r--r-- | server/sonar-docs/build.gradle | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/sonar-docs/build.gradle b/server/sonar-docs/build.gradle index b7bc9f82eb3..d072b8fe25e 100644 --- a/server/sonar-docs/build.gradle +++ b/server/sonar-docs/build.gradle @@ -117,3 +117,15 @@ artifactoryPublish { publishPom = false publications(publishing.publications.docs) } + +def sources = fileTree(dir: "src") + fileTree(dir: "config") + fileTree(dir: "plugins") + file("gatsby-config.js") + file("gatsby-node.js") + +task licenseCheckWeb(type: com.hierynomus.gradle.license.tasks.LicenseCheck) { + source = sources +} +licenseMain.dependsOn licenseCheckWeb + +task licenseFormatWeb(type: com.hierynomus.gradle.license.tasks.LicenseFormat) { + source = sources +} +licenseFormat.dependsOn licenseFormatWeb |