From 00cc2a576ecb7bb0e624e2ee77d7eaa28644c7c6 Mon Sep 17 00:00:00 2001 From: Qi Chen Date: Wed, 14 Aug 2024 11:38:44 -0500 Subject: [PATCH] FIX: include schema cli into release (#4833) MAINT: include schema cli into release Signed-off-by: George Chen --- build-resources.gradle | 5 +++-- data-prepper-plugin-schema-cli/build.gradle | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/build-resources.gradle b/build-resources.gradle index b8a7bd5879..446f1d97b2 100644 --- a/build-resources.gradle +++ b/build-resources.gradle @@ -14,5 +14,6 @@ ext.coreProjects = [ project(':data-prepper-plugins'), project(':data-prepper-test-common'), project(':data-prepper-test-event'), - project(':data-prepper-plugin-framework') -] \ No newline at end of file + project(':data-prepper-plugin-framework'), + project(':data-prepper-plugin-schema-cli') +] diff --git a/data-prepper-plugin-schema-cli/build.gradle b/data-prepper-plugin-schema-cli/build.gradle index 2c2db93ee6..2108fad681 100644 --- a/data-prepper-plugin-schema-cli/build.gradle +++ b/data-prepper-plugin-schema-cli/build.gradle @@ -26,4 +26,15 @@ dependencies { } testImplementation(platform("org.junit:junit-bom:5.9.1")) testImplementation("org.junit.jupiter:junit-jupiter") +} + +jacocoTestCoverageVerification { + afterEvaluate { + classDirectories.from = files(classDirectories.files.collect { + fileTree(dir: it, exclude: [ + // Exclude main class + 'org/opensearch/dataprepper/schemas/DataPrepperPluginSchemaExecute.class' + ]) + }) + } } \ No newline at end of file