As a workaround this can be used: anywhere in project:
public class WorkaroundConfig extends DefaultJoranConfigurator { }
In project module-info:
provides ch.qos.logback.classic.spi.Configurator with app.WorkaroundConfig;