Detect debuggable build types better
Switch to provided dependency for jars