-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f89c8c
commit b78d510
Showing
24 changed files
with
27,335 additions
and
27,706 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,44 @@ | ||
apply plugin: 'java-library' | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
dependencies { | ||
classpath 'se.bjurr.gradle:gradle-scripts:2.+' | ||
classpath 'org.jsonschema2pojo:jsonschema2pojo-gradle-plugin:1.2.1' | ||
} | ||
plugins { | ||
id "se.bjurr.gradle.conventional-release" | ||
id "se.bjurr.gradle.java-convention" | ||
id "se.bjurr.gradle.update-versions" | ||
} | ||
project.ext.buildConfig = [ | ||
publishing: [ | ||
relocate: [ | ||
'com.google', | ||
'com.jakewharton' | ||
] | ||
], | ||
violations: [ | ||
updateReadme: true | ||
], | ||
staticCodeAnalysis: [ | ||
maxViolations: 5 | ||
], | ||
sourceCompatibility: 11, | ||
targetCompatibility: 11 | ||
] | ||
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI() | ||
|
||
/* | ||
apply plugin: 'jsonschema2pojo' | ||
// A bit ugly: https://github.com/joelittlejohn/jsonschema2pojo/issues/1594 | ||
[ | ||
// [ | ||
// from: "${rootDir}/src/main/resources/json/sarif-schema.json", | ||
// to: "se.bjurr.violations.lib.model.generated.sarif" | ||
// ], | ||
// [ | ||
// from: "${rootDir}/src/main/resources/json/coverity-schema.json", | ||
// to: "se.bjurr.violations.lib.model.generated.coverity" | ||
// ] | ||
].each { codeGen -> | ||
logger.lifecycle("Generating ${codeGen.from} to ${codeGen.to}") | ||
jsonSchema2Pojo { | ||
source = files(codeGen.from) | ||
targetDirectory = file("src/gen/java") | ||
targetPackage = codeGen.to | ||
generateBuilders = true | ||
annotationStyle = 'none' | ||
includeGeneratedAnnotation = false | ||
removeOldOutput = false | ||
} | ||
} | ||
spotlessJava.dependsOn generateJsonSchema2Pojo | ||
sourcesJar.dependsOn generateJsonSchema2Pojo | ||
javadocJar.dependsOn generateJsonSchema2Pojo | ||
*/ | ||
apply plugin: 'jsonschema2pojo' | ||
// A bit ugly: https://github.com/joelittlejohn/jsonschema2pojo/issues/1594 | ||
[ | ||
// [ | ||
// from: "${rootDir}/src/main/resources/json/sarif-schema.json", | ||
// to: "se.bjurr.violations.lib.model.generated.sarif" | ||
// ], | ||
// [ | ||
// from: "${rootDir}/src/main/resources/json/coverity-schema.json", | ||
// to: "se.bjurr.violations.lib.model.generated.coverity" | ||
// ] | ||
].each { codeGen -> | ||
logger.lifecycle("Generating ${codeGen.from} to ${codeGen.to}") | ||
jsonSchema2Pojo { | ||
source = files(codeGen.from) | ||
targetDirectory = file("src/gen/java") | ||
targetPackage = codeGen.to | ||
generateBuilders = true | ||
annotationStyle = 'none' | ||
includeGeneratedAnnotation = false | ||
removeOldOutput = false | ||
} | ||
} | ||
spotlessJava.dependsOn generateJsonSchema2Pojo | ||
sourcesJar.dependsOn generateJsonSchema2Pojo | ||
javadocJar.dependsOn generateJsonSchema2Pojo | ||
*/ | ||
|
||
dependencies { | ||
api 'com.google.code.gson:gson:2.10.1' | ||
api 'com.google.code.gson:gson:2.11.0' | ||
|
||
testImplementation 'junit:junit:4.13.2' | ||
testImplementation 'org.assertj:assertj-core:3.25.3' | ||
testImplementation 'uk.co.jemos.podam:podam:8.0.1.RELEASE' | ||
testImplementation 'com.approvaltests:approvaltests:23.0.1' | ||
testImplementation 'com.networknt:json-schema-validator:1.4.0' | ||
testImplementation 'junit:junit:4.13.2' | ||
testImplementation 'org.assertj:assertj-core:3.26.3' | ||
testImplementation 'uk.co.jemos.podam:podam:8.0.2.RELEASE' | ||
testImplementation 'com.approvaltests:approvaltests:24.7.0' | ||
testImplementation 'com.networknt:json-schema-validator:1.5.2' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#Mon Sep 02 18:16:59 CEST 2024 | ||
description=A collection of scripts | ||
version=1.157.3 | ||
#Fri Oct 04 18:05:35 CEST 2024 | ||
description=Parsing report files like static code analysis | ||
group=se.bjurr.violations | ||
maxViolations=5 | ||
relocate=com.google,com.jakewharton | ||
sourceCompatibility=11 | ||
targetCompatibility=11 | ||
version=1.157.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
plugins { | ||
id "se.bjurr.gradle.conventional-release" version "0.+" apply false | ||
id "se.bjurr.gradle.java-convention" version "0.+" apply false | ||
id "se.bjurr.gradle.update-versions" version "0.+" apply false | ||
} |
Oops, something went wrong.