Can’t to import apache commons-lang to gradle build file. It worked well in gradle-milestone-3, but not in milestone-4 - milestone-8.
build.gradle
import org.apache.commons.lang.SystemUtils
apply plugin: ‘eclipse’
mainVersion = ‘1.0-SNAPSHOT’
orgSpringframeworkVersion = ‘3.1.0.RELEASE’
allprojects {
repositories {
mavenLocal()
mavenCentral()
} }
libraries = [
commonsLang: ‘commons-lang:commons-lang:2.6’, ]
dependencies {
compile( libraries.commonsLang ) } …
Could not compile build file ‘build.gradle’. > startup failed:
build file ‘build.gradle’: 1: unable to resolve class org.apache.commons.lang.SystemUtils
@ line 1, column 1.
import org.apache.commons.lang.SystemUtils