void (DefaultExternalProject externalProject) { externalProject.setExternalSystemId("GRADLE"); externalProject.setId(assertNotNull(readString(reader, "id"))); externalProject.setPath(assertNotNull(readString(reader, "path"))); externalProject.setIdentityPath(assertNotNull(readString(reader, "identityPath"))); externalProject.setName(assertNotNull(readString(reader, "name"))); externalProject.setQName(assertNotNull(readString(reader, "qName"))); externalProject.setDescription(readString(reader, "description")); externalProject.setGroup(assertNotNull(readString(reader, "group"))); externalProject.setVersion(assertNotNull(readString(reader, "version"))); File projectDir = readFile(reader, "projectDir"); if (projectDir != null) { externalProject.setProjectDir(projectDir); } File buildDir = readFile(reader, "buildDir"); if (buildDir != null) { externalProject.setBuildDir(buildDir); } File buildFile = readFile(reader, "buildFile"); if (buildFile != null) { externalProject.setBuildFile(buildFile); } readTasks(reader, externalProject); externalProject.setSourceSetModel(readSourceSetModel(reader, context)); externalProject.setChildProjects(readProjects(reader, context)); }