Please use the file.whenMerged
hook instead of file.withXml
. The XML hook is no longer necessary, because the model you get in whenMerged
contains all aspects of the classpath. Buildship only takes whenMerged
into account, it does not work on XML level.