Rewrote parts of build.gradle to fix build bugs with some BlueJ versions