Adapt japicmp-maven-plugin to not consider adding a new default method to an interface as incompatible

According to https://docs.oracle.com/javase/specs/jls/se8/html/jls-13.html#jls-13.5.3
Adding an abstract (default) method to an interface does not break compatibility with pre-existing binaries.
This commit is contained in:
Filip Hrisafov 2018-11-01 23:56:15 +01:00
parent 104ebf88da
commit a0ae8750a1

View File

@ -541,6 +541,14 @@
<parameter>
<oldVersionPattern>\d+\.\d+\.\d+\.Final</oldVersionPattern>
<breakBuildBasedOnSemanticVersioning>true</breakBuildBasedOnSemanticVersioning>
<overrideCompatibilityChangeParameters>
<overrideCompatibilityChangeParameter>
<compatibilityChange>METHOD_NEW_DEFAULT</compatibilityChange>
<binaryCompatible>true</binaryCompatible>
<sourceCompatible>false</sourceCompatible>
<semanticVersionLevel>MINOR</semanticVersionLevel>
</overrideCompatibilityChangeParameter>
</overrideCompatibilityChangeParameters>
</parameter>
</configuration>
</plugin>