Skip to content

Commit 687237c

Browse files
committed
Try to fix Java 8 build on GH
1 parent b3a81a1 commit 687237c

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

pom.xml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,6 @@ limitations under the License.
108108
<commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl>
109109
<project.build.outputTimestamp>2024-02-08T21:29:14Z</project.build.outputTimestamp>
110110
<commons.jacoco.version>0.8.12</commons.jacoco.version>
111-
<!-- JaCoCo: Don't make code coverage worse than: -->
112-
<commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
113-
<commons.jacoco.classRatio>0.96</commons.jacoco.classRatio>
114-
<commons.jacoco.instructionRatio>0.97</commons.jacoco.instructionRatio>
115-
<commons.jacoco.methodRatio>0.93</commons.jacoco.methodRatio>
116-
<commons.jacoco.branchRatio>0.92</commons.jacoco.branchRatio>
117-
<commons.jacoco.complexityRatio>0.90</commons.jacoco.complexityRatio>
118-
<commons.jacoco.lineRatio>0.95</commons.jacoco.lineRatio>
119111
</properties>
120112
<build>
121113
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check javadoc:javadoc</defaultGoal>
@@ -297,6 +289,23 @@ limitations under the License.
297289
<commons.jacoco.lineRatio>0.94</commons.jacoco.lineRatio>
298290
</properties>
299291
</profile>
292+
<profile>
293+
<!-- Java 9 and up -->
294+
<id>java-9-up</id>
295+
<activation>
296+
<jdk>[9,)</jdk>
297+
</activation>
298+
<properties>
299+
<!-- JaCoCo: Don't make code coverage worse than: -->
300+
<commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure>
301+
<commons.jacoco.classRatio>0.96</commons.jacoco.classRatio>
302+
<commons.jacoco.instructionRatio>0.97</commons.jacoco.instructionRatio>
303+
<commons.jacoco.methodRatio>0.93</commons.jacoco.methodRatio>
304+
<commons.jacoco.branchRatio>0.92</commons.jacoco.branchRatio>
305+
<commons.jacoco.complexityRatio>0.90</commons.jacoco.complexityRatio>
306+
<commons.jacoco.lineRatio>0.95</commons.jacoco.lineRatio>
307+
</properties>
308+
</profile>
300309
</profiles>
301310
<developers>
302311
<developer>

0 commit comments

Comments
 (0)