forked from tomasbjerre/violations-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (44 loc) · 1.18 KB
/
build.gradle
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apply plugin: 'java-library'
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath 'se.bjurr.gradle:gradle-scripts:2.+'
classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:1.1.2'
}
}
project.ext.buildConfig = [
publishing: [
relocate: [
'com.google',
'com.jakewharton'
]
],
violations: [
updateReadme: true
],
staticCodeAnalysis: [
maxViolations: 0
],
]
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI()
apply plugin: 'jsonschema2pojo'
jsonSchema2Pojo {
source = files("${sourceSets.main.output.resourcesDir}/json")
targetDirectory = file("src/gen/java")
targetPackage = 'se.bjurr.violations.lib.model.generated.sarif'
generateBuilders = true
annotationStyle = 'none'
includeGeneratedAnnotation = false
removeOldOutput = true
}
dependencies {
api 'com.google.code.gson:gson:2.10.1'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.assertj:assertj-core:3.24.1'
testImplementation 'uk.co.jemos.podam:podam:7.2.11.RELEASE'
testImplementation 'com.approvaltests:approvaltests:18.5.0'
testImplementation 'com.networknt:json-schema-validator:1.0.76'
}