BuildScriptClasspathModelImpl () { BuildScriptClasspathModelImpl classpathModel = new BuildScriptClasspathModelImpl(); if (!context.isFirstModelRead) { context.isFirstModelRead = true; context.gradleVersion = assertNotNull(readString(reader, "gradleVersion")); context.gradleHomeDir = readFile(reader, "gradleHomeDir"); } classpathModel.setGradleVersion(context.gradleVersion); classpathModel.setGradleHomeDir(context.gradleHomeDir); List<ClasspathEntryModel> classpathEntries = readClasspath(reader); for (ClasspathEntryModel entry : classpathEntries) { classpathModel.add(entry); } return classpathModel; }