aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-sarif
diff options
context:
space:
mode:
authorSteve Marion <steve.marion@sonarsource.com>2024-08-21 15:37:48 +0200
committersonartech <sonartech@sonarsource.com>2024-08-27 20:02:40 +0000
commitd4fd4fcbbc8d658e9863483a00fa91ffa34bc078 (patch)
treee9e54d46d3b6bccc419c26faf921c7232a57ebac /sonar-sarif
parent90793a92b3f35c97db4a563e965e7225b163c327 (diff)
downloadsonarqube-d4fd4fcbbc8d658e9863483a00fa91ffa34bc078.tar.gz
sonarqube-d4fd4fcbbc8d658e9863483a00fa91ffa34bc078.zip
SONAR-19710 fix implicit task dependencies. skip java plugin tasks for frontend builds
Diffstat (limited to 'sonar-sarif')
-rw-r--r--sonar-sarif/build.gradle10
1 files changed, 8 insertions, 2 deletions
diff --git a/sonar-sarif/build.gradle b/sonar-sarif/build.gradle
index 23466430d27..78bf955e6aa 100644
--- a/sonar-sarif/build.gradle
+++ b/sonar-sarif/build.gradle
@@ -1,3 +1,5 @@
+import nl.javadude.gradle.plugins.license.License
+
plugins {
id "org.jsonschema2pojo" version "1.2.1"
}
@@ -17,5 +19,9 @@ jsonSchema2Pojo {
}
license {
- excludes(["org/sonar/sarif/pojo/**/*"])
-} \ No newline at end of file
+ exclude("org/sonar/sarif/pojo/**/*")
+}
+
+tasks.withType(License).configureEach { licenseTask ->
+ licenseTask.mustRunAfter(tasks.named("generateJsonSchema2Pojo"))
+}