This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-rdf.git
commit 2941121f14392dd8d1327d07cc091c6d27399699 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Thu Apr 24 16:52:55 2025 -0400 Set the bar for JaCoCo --- commons-rdf-api/pom.xml | 9 ++++++++- commons-rdf-jena/pom.xml | 7 +++++++ commons-rdf-jsonld-java/pom.xml | 7 +++++++ commons-rdf-rdf4j/pom.xml | 9 ++++++++- commons-rdf-simple/pom.xml | 9 ++++++++- pom.xml | 2 ++ 6 files changed, 40 insertions(+), 3 deletions(-) diff --git a/commons-rdf-api/pom.xml b/commons-rdf-api/pom.xml index 19b95857..c90e5eeb 100644 --- a/commons-rdf-api/pom.xml +++ b/commons-rdf-api/pom.xml @@ -33,8 +33,15 @@ <properties> <commons.parent.dir>${basedir}/..</commons.parent.dir> <commons.osgi.symbolicName>org.apache.commons.rdf.api</commons.osgi.symbolicName> - <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> + <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> <project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.classRatio>0.90</commons.jacoco.classRatio> + <commons.jacoco.instructionRatio>0.79</commons.jacoco.instructionRatio> + <commons.jacoco.methodRatio>0.77</commons.jacoco.methodRatio> + <commons.jacoco.branchRatio>0.30</commons.jacoco.branchRatio> + <commons.jacoco.lineRatio>0.76</commons.jacoco.lineRatio> + <commons.jacoco.complexityRatio>0.66</commons.jacoco.complexityRatio> </properties> <build> <plugins> diff --git a/commons-rdf-jena/pom.xml b/commons-rdf-jena/pom.xml index 7ccca2ab..1effa386 100644 --- a/commons-rdf-jena/pom.xml +++ b/commons-rdf-jena/pom.xml @@ -33,6 +33,13 @@ <properties> <commons.parent.dir>${basedir}/..</commons.parent.dir> <project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.classRatio>0.81</commons.jacoco.classRatio> + <commons.jacoco.instructionRatio>0.72</commons.jacoco.instructionRatio> + <commons.jacoco.methodRatio>0.82</commons.jacoco.methodRatio> + <commons.jacoco.branchRatio>0.58</commons.jacoco.branchRatio> + <commons.jacoco.lineRatio>0.74</commons.jacoco.lineRatio> + <commons.jacoco.complexityRatio>0.67</commons.jacoco.complexityRatio> </properties> <distributionManagement> <site> diff --git a/commons-rdf-jsonld-java/pom.xml b/commons-rdf-jsonld-java/pom.xml index 058fb6b5..be55a367 100644 --- a/commons-rdf-jsonld-java/pom.xml +++ b/commons-rdf-jsonld-java/pom.xml @@ -34,6 +34,13 @@ <commons.parent.dir>${basedir}/..</commons.parent.dir> <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> <project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.classRatio>0.92</commons.jacoco.classRatio> + <commons.jacoco.instructionRatio>0.74</commons.jacoco.instructionRatio> + <commons.jacoco.methodRatio>0.79</commons.jacoco.methodRatio> + <commons.jacoco.branchRatio>0.68</commons.jacoco.branchRatio> + <commons.jacoco.lineRatio>0.74</commons.jacoco.lineRatio> + <commons.jacoco.complexityRatio>0.70</commons.jacoco.complexityRatio> </properties> <distributionManagement> <site> diff --git a/commons-rdf-rdf4j/pom.xml b/commons-rdf-rdf4j/pom.xml index 0fee40a9..26cf4ad0 100644 --- a/commons-rdf-rdf4j/pom.xml +++ b/commons-rdf-rdf4j/pom.xml @@ -34,6 +34,13 @@ <commons.parent.dir>${basedir}/..</commons.parent.dir> <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> <project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.classRatio>0.85</commons.jacoco.classRatio> + <commons.jacoco.instructionRatio>0.75</commons.jacoco.instructionRatio> + <commons.jacoco.methodRatio>0.83</commons.jacoco.methodRatio> + <commons.jacoco.branchRatio>0.53</commons.jacoco.branchRatio> + <commons.jacoco.lineRatio>0.75</commons.jacoco.lineRatio> + <commons.jacoco.complexityRatio>0.68</commons.jacoco.complexityRatio> </properties> <build> <plugins> @@ -131,7 +138,7 @@ <groupId>org.eclipse.rdf4j</groupId> <artifactId>rdf4j-repository-sail</artifactId> </dependency> - <!-- and nativerdf for testing --> + <!-- and nativerdf for testing --> <dependency> <groupId>org.eclipse.rdf4j</groupId> <artifactId>rdf4j-sail-nativerdf</artifactId> diff --git a/commons-rdf-simple/pom.xml b/commons-rdf-simple/pom.xml index 30c305d2..ab5ebef4 100644 --- a/commons-rdf-simple/pom.xml +++ b/commons-rdf-simple/pom.xml @@ -38,8 +38,15 @@ </distributionManagement> <properties> <commons.parent.dir>${basedir}/..</commons.parent.dir> - <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> + <!-- project.build.outputTimestamp is managed by Maven plugins, see https://maven.apache.org/guides/mini/guide-reproducible-builds.html --> <project.build.outputTimestamp>2024-02-01T03:27:02Z</project.build.outputTimestamp> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.classRatio>0.84</commons.jacoco.classRatio> + <commons.jacoco.instructionRatio>0.81</commons.jacoco.instructionRatio> + <commons.jacoco.methodRatio>0.83</commons.jacoco.methodRatio> + <commons.jacoco.branchRatio>0.73</commons.jacoco.branchRatio> + <commons.jacoco.lineRatio>0.81</commons.jacoco.lineRatio> + <commons.jacoco.complexityRatio>0.73</commons.jacoco.complexityRatio> </properties> <dependencies> <dependency> diff --git a/pom.xml b/pom.xml index 56d99125..394dceed 100644 --- a/pom.xml +++ b/pom.xml @@ -68,6 +68,8 @@ <slf4j.version>1.7.26</slf4j.version> <skipAPICompatCheck>false</skipAPICompatCheck> <moditect.skip>true</moditect.skip> + <!-- JaCoCo: Don't make code coverage worse than: --> + <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure> </properties> <scm> <url>https://gitbox.apache.org/repos/asf/commons-rdf.git</url>