Set up project:
mkdir project
cd project
npm init -y| apply plugin: 'java' | |
| apply plugin: 'eclipse' | |
| sourceCompatibility = JavaVersion.VERSION_1_8 | |
| targetCompatibility = JavaVersion.VERSION_1_8 | |
| eclipseJdt << { | |
| ant.propertyfile(file: ".settings/org.eclipse.core.resources.prefs") { | |
| ant.entry(key: "eclipse.preferences.version", value: "1") | |
| ant.entry(key: "encoding/<project>", value: "utf-8") |