blob: 711a82be12d383218cdf423ce2fda4470188c415 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import nl.javadude.gradle.plugins.license.License
plugins {
id "org.jsonschema2pojo" version "1.2.2"
}
dependencies {
api 'com.fasterxml.jackson.core:jackson-databind'
api 'com.google.code.findbugs:jsr305'
}
jsonSchema2Pojo {
source = files("${sourceSets.main.output.resourcesDir}/sarif/sarif-schema-2.1.0.json")
generateBuilders = true
inclusionLevel = "NON_DEFAULT"
initializeCollections = false
targetPackage = 'org.sonar.sarif.pojo'
includeJsr305Annotations = true
}
license {
exclude("org/sonar/sarif/pojo/**/*")
}
tasks.withType(License).configureEach { licenseTask ->
licenseTask.mustRunAfter(tasks.named("generateJsonSchema2Pojo"))
}
|