restruct gradle conf & make it jsp-compatible