Skip to content

Commit

Permalink
REF: data prepper plugin schema (#4872)
Browse files Browse the repository at this point in the history
Signed-off-by: George Chen <qchea@amazon.com>
  • Loading branch information
chenqi0805 committed Aug 27, 2024
1 parent d6465ef commit a395bd2
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-prepper-plugin-schema-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ application {

dependencies {
implementation project(':data-prepper-plugins')
implementation project(':data-prepper-plugin-framework')
implementation project(':data-prepper-plugin-schema')
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.reflections:reflections:0.10.2'
implementation 'com.github.victools:jsonschema-maven-plugin:4.35.0'
Expand Down
35 changes: 35 additions & 0 deletions data-prepper-plugin-schema/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
plugins {
id 'data-prepper.publish'
}

dependencies {
implementation project(':data-prepper-api')
implementation project(':data-prepper-plugin-framework')
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'org.reflections:reflections:0.10.2'
implementation 'com.github.victools:jsonschema-maven-plugin:4.35.0'
implementation 'com.github.victools:jsonschema-generator:4.35.0'
implementation 'com.github.victools:jsonschema-module-jackson:4.35.0'
implementation 'com.github.victools:jsonschema-module-jakarta-validation:4.35.0'
implementation 'javax.inject:javax.inject:1'
implementation(libs.spring.core) {
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation(libs.spring.context) {
exclude group: 'commons-logging', module: 'commons-logging'
}
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation project(':data-prepper-plugins')
}

jacocoTestCoverageVerification {
dependsOn jacocoTestReport
violationRules {
rule { //in addition to core projects rule
limit {
minimum = 0.90
}
}
}
}
4 changes: 3 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,6 @@ include 'data-prepper-plugins:rds-source'
include 'data-prepper-plugins:http-source-common'
include 'data-prepper-plugins:http-common'
include 'data-prepper-plugins:aws-lambda'
//include 'data-prepper-plugins:dummy-plugin'
//include 'data-prepper-plugins:dummy-plugin'
include 'data-prepper-plugin-schema'

0 comments on commit a395bd2

Please sign in to comment.