Migrate to a maven-style structure and add a pom.xml file for building