Good point. It makes sense to only exclude deprecated API. I needed to find a workaround for the Scala API. The japicmp plugin seems to have an issue with Scala's @deprecated annotation. But excluding all *scala files (considering that we want to remove all these classes, anyway) should be a good enough workaround [1].
I created FLINK-36207 [2] and the corresponding PR [3] to cover this. Matthias [1] https://cwiki.apache.org/confluence/display/FLINK/2.0+Release#id-2.0Release-BreakingChanges(TargetingtofinishbythePreviewRelease) [2] https://issues.apache.org/jira/browse/FLINK-36207 [3] https://github.com/apache/flink/pull/25285 On Mon, Sep 2, 2024 at 8:11 AM Xintong Song <tonysong...@gmail.com> wrote: > Hi Matthias, > > I'm not an expert in japicmp. Is it possible to only disable this for > deprecated APIs? Maybe add an exclusion for @Deprecated? I think that would > reduce the risk of unintended breaking changes to deprecated APIs that are > not yet ready for removal. > > Best, > > Xintong > > > > On Thu, Aug 29, 2024 at 5:52 PM Gabor Somogyi <gabor.g.somo...@gmail.com> > wrote: > > > Hi Matthias, > > > > I would turn japicmp for 2.0 off because adding a long list of exceptions > > doesn't give any value. > > 1.x and 2.x is not going to be compatible in any way and when 2.x > released, > > then that will be the new > > japicmp baseline (after a heavy migration). > > > > What I see as a potential risk it that we break something which was not > > intended, but fixing those > > hopefully small amount of cases is less effort than maintaining an > endless > > list. > > > > BR, > > G > > > > > > On Thu, Aug 29, 2024 at 11:40 AM Matthias Pohl <map...@apache.org> > wrote: > > > > > Hi everyone, > > > for the 2.0 work, we are expecting to run into public API changes > quite a > > > bit. This would get picked up by the japicmp plugin. The usual way is > to > > > add exclusions to the plugin configuration [1] generating a (presumably > > > long) list of API changes. > > > > > > I'm wondering whether we, instead, would want to disable the plugin [2] > > for > > > 2.0 entirely to lower effort on the contributors side. > > > > > > Best, > > > Matthias > > > > > > [1] https://github.com/apache/flink/blob/master/pom.xml#L2367 > > > [2] https://github.com/apache/flink/blob/master/pom.xml#L170 > > > > > >