diff --git a/core/pom.xml b/core/pom.xml index 028db73ef3d..fec58f8f008 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -498,5 +498,16 @@ + + api-diff + + + + org.revapi + revapi-maven-plugin + + + + diff --git a/core/src/main/api/revapi.ftl b/core/src/main/api/revapi.ftl new file mode 100644 index 00000000000..c56f39e12fb --- /dev/null +++ b/core/src/main/api/revapi.ftl @@ -0,0 +1,27 @@ +<#-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> +|CHANGE|SEVERITY|OLD|NEW| +|---|---|---|---| +<#list reports as report> +<#list report.differences as diff> +|<#if diff.description??>${diff.description}<#else>${diff.code}|<#list diff.classification?keys as compat>${compat}: ${diff.classification?api.get(compat)}<#sep>, |${report.oldElement!"none"}|${report.newElement!"none"}| + + \ No newline at end of file diff --git a/hadoop-mapreduce/pom.xml b/hadoop-mapreduce/pom.xml index 90e8dccdc56..a1c6b0f0bc2 100644 --- a/hadoop-mapreduce/pom.xml +++ b/hadoop-mapreduce/pom.xml @@ -122,4 +122,17 @@ + + + api-diff + + + + org.revapi + revapi-maven-plugin + + + + + diff --git a/hadoop-mapreduce/src/main/api/revapi.ftl b/hadoop-mapreduce/src/main/api/revapi.ftl new file mode 100644 index 00000000000..c56f39e12fb --- /dev/null +++ b/hadoop-mapreduce/src/main/api/revapi.ftl @@ -0,0 +1,27 @@ +<#-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> +|CHANGE|SEVERITY|OLD|NEW| +|---|---|---|---| +<#list reports as report> +<#list report.differences as diff> +|<#if diff.description??>${diff.description}<#else>${diff.code}|<#list diff.classification?keys as compat>${compat}: ${diff.classification?api.get(compat)}<#sep>, |${report.oldElement!"none"}|${report.newElement!"none"}| + + \ No newline at end of file diff --git a/minicluster/pom.xml b/minicluster/pom.xml index 9904356bfff..72d3ee60585 100644 --- a/minicluster/pom.xml +++ b/minicluster/pom.xml @@ -183,4 +183,17 @@ + + + api-diff + + + + org.revapi + revapi-maven-plugin + + + + + diff --git a/minicluster/src/main/api/revapi.ftl b/minicluster/src/main/api/revapi.ftl new file mode 100644 index 00000000000..c56f39e12fb --- /dev/null +++ b/minicluster/src/main/api/revapi.ftl @@ -0,0 +1,27 @@ +<#-- + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + https://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. + +--> +|CHANGE|SEVERITY|OLD|NEW| +|---|---|---|---| +<#list reports as report> +<#list report.differences as diff> +|<#if diff.description??>${diff.description}<#else>${diff.code}|<#list diff.classification?keys as compat>${compat}: ${diff.classification?api.get(compat)}<#sep>, |${report.oldElement!"none"}|${report.newElement!"none"}| + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 9dad9324059..42a8020f613 100644 --- a/pom.xml +++ b/pom.xml @@ -1689,5 +1689,85 @@ + + + api-diff + + + + + org.revapi + revapi-maven-plugin + 0.15.1 + + + + + + + java-package + /org\.apache\.accumulo\.((core\.client|core\.data|core\.iterators|core\.security)|minicluster|hadoop){1}(\..*)?/ + + + + + + true + + + true + java\.class\.externalClassNoLongerExposedInAPI + + + true + java\.field\.enumConstantOrderChanged + + + true + java\.missing\.newClass + + + true + java\.missing\.oldClass + + + + + NON_BREAKING + documented + err + + false + false + + + false + false + + + + org.revapi + revapi-java + 0.28.4 + + + org.revapi + revapi-reporter-text + 0.15.1 + + + + + api-check + + check + + + + + + + +