diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-07-23 15:22:13 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-07-24 20:02:47 +0000 |
commit | e4313bc4793eaf2a265f55f4bfa867e4c76942cd (patch) | |
tree | af29396ed8f5140d6bee4fe8ba6360cd1ce43ba9 /sonar-sarif/build.gradle | |
parent | 012bf4a5f40dfa9034e534f81941ce3cdbd5ac13 (diff) | |
download | sonarqube-e4313bc4793eaf2a265f55f4bfa867e4c76942cd.tar.gz sonarqube-e4313bc4793eaf2a265f55f4bfa867e4c76942cd.zip |
SONAR-22603 Use generated code for the SARIF parser
Diffstat (limited to 'sonar-sarif/build.gradle')
-rw-r--r-- | sonar-sarif/build.gradle | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sonar-sarif/build.gradle b/sonar-sarif/build.gradle new file mode 100644 index 00000000000..befefe045c3 --- /dev/null +++ b/sonar-sarif/build.gradle @@ -0,0 +1,21 @@ +plugins { + id "org.jsonschema2pojo" version "1.2.1" +} + +dependencies { + api 'com.fasterxml.jackson.core:jackson-databind' + api 'com.google.code.findbugs:jsr305' +} + +jsonSchema2Pojo { + source = files("${sourceSets.main.output.resourcesDir}/sarif") + generateBuilders = true + inclusionLevel = "NON_DEFAULT" + initializeCollections = false + targetPackage = 'org.sonar.sarif.pojo' + includeJsr305Annotations = true +} + +license { + excludes(["org/sonar/sarif/pojo/**/*"]) +}
\ No newline at end of file |