Skip to content

Commit 79cb372

Browse files
author
Tim te Beek
authored
Remove Cobertura Maven Plugin, as it is not compatible with Java 11. (#98)
* Remove Cobertura Maven Plugin, as it is not compatible with Java 11. While JaCoCo is a likely replacement, actually plugging that in would likely also require integration with whatever the build was using to visualize the results. It is unlikely there is a direct replacement option there. Removing Cobertura at least ensures the build is not left in a broken state, even though Coverage information may then be missing. Any coverage visualization is likely to surface that for users. * Tag on cobertura removal in java8-to-java11.yml
1 parent ab8ab51 commit 79cb372

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/main/resources/META-INF/rewrite/java8-to-java11.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ recipeList:
4343
- org.openrewrite.java.migrate.javax.JavaxLangModelUtil
4444
- org.openrewrite.java.migrate.javax.JavaxManagementMonitorAPIs
4545
- org.openrewrite.java.migrate.javax.JavaxXmlStreamAPIs
46+
- org.openrewrite.java.migrate.cobertura.RemoveCoberturaMavenPlugin
4647
- org.openrewrite.java.migrate.wro4j.UpgradeWro4jMavenPluginVersion
4748
- org.openrewrite.java.migrate.jacoco.UpgradeJaCoCoMavenPluginVersion
4849
- org.openrewrite.java.migrate.JavaVersion11
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Copyright 2021 the original author or authors.
3+
# <p>
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# <p>
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
# <p>
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
---
17+
type: specs.openrewrite.org/v1beta/recipe
18+
name: org.openrewrite.java.migrate.cobertura.RemoveCoberturaMavenPlugin
19+
displayName: Remove Cobertura Maven plugin
20+
description: This recipe will remove Cobertura, as it is not compatible with Java 11.
21+
tags:
22+
- java11
23+
- cobertura
24+
25+
recipeList:
26+
- org.openrewrite.maven.RemovePlugin:
27+
groupId: org.codehaus.mojo
28+
artifactId: cobertura-maven-plugin

0 commit comments

Comments
 (0)