add build.gradle script with java and idea plugin