Could not find property 'classLoader' on settings error while importing a existing checkout gradle project in eclipse Juno

I am getting this below error while importing a existing checkout gradle project in eclipse Juno, any solution?

FAILURE: Build failed with an exception.

  • Where: Settings file ‘/Users/mqc/beacm.commerce.code/settings.gradle’ line: 26

  • What went wrong: A problem occurred evaluating settings ‘beacm.commerce.code’. > Could not find property ‘classLoader’ on settings ‘beacm.commerce.code’.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 0.278 secs

Does this issue only show up in Eclipse or does also occur when you executed the build from the command line?

this occurs only in Eclipse.

What do you have on line 26 in your ‘settings.gradle’ file? You might want to post the full contents.

line 26: configurations.classpath.each { file -> settings.classLoader.addURL(file.toURI().toURL()) }

and whole file:

buildscript {

ext.RepositoryConfigurator = {

maven {

credentials.username beArtifactoryReader

credentials.password beArtifactoryReaderPwd

url “$beArtifactoryReaderUrl/beacm”

}

mavenCentral()

}

ext.DependencyConfigurator = {

classpath “com.iteego.glasir:glasir.build:1.3.13-SNAPSHOT”

}

ext.ResolutionConfigurator = {

resolutionStrategy.cacheChangingModulesFor 1, ‘hours’

}

repositories

RepositoryConfigurator

dependencies

DependencyConfigurator

configurations.classpath ResolutionConfigurator

// replacing the below with gradle.allprojects { buildscript {} } as per

// http://forums.gradle.org/gradle/topics/while_we_are_waiting_for_plugins_in_settings_gradle

// does not work. Leaving this in for now. -Matias 2013.Sep.11

configurations.classpath.each { file -> settings.classLoader.addURL(file.toURI().toURL()) } }

gradle.allprojects {

repositories RepositoryConfigurator

buildscript.repositories

RepositoryConfigurator

buildscript.dependencies

DependencyConfigurator

buildscript.configurations.classpath ResolutionConfigurator

buildscript {

dependencies {

classpath ‘com.eriwen:gradle-js-plugin:1.5.0’

classpath ‘com.eriwen:gradle-css-plugin:1.8.2.1’

}

} }

new glasir.Build(this).with {

setup {

rootProjectName “beacm”

cachePackagesFor 1, “hours”

dependencies {

glasirpackage(“com.iteego.glasir.pkg:atg-platform-10.2:1.0.3”)

glasirpackage(“com.iteego.glasir.pkg:jboss-eap-5.1.2:1.0.1”)

//glasirpackage(“com.iteego.glasir.pkg:glasir.db:1.2.16-SNAPSHOT”)

glasirpackage(“com.iteego.glasir.pkg:glasir.db:1.2.40-SNAPSHOT”)

glasirpackage(“com.iteego.glasir.pkg:atg-initializer-10.2:1.0.4”)

}

addAtgModules from: atgRoot

addAtgModules from: “$settingsDir/packages/modules”

addAtgModules from: “$settingsDir/packages/initializer”

addAtgModules from: “$settingsDir/glasir-app”, isAtgCore: false,

excludes: ["/*.war/", “data/db/”, “data/import/”, "/build/", “/config/", "/src/”, “**/lib/”]

} }