I imported a project from github(https://github.com/Cascading/cascading-hive) There is a build. output of gradle -v ------------------------------------------------------------------------------------------------------------------------------------------------------------
Gradle 2.1
Build time:
2014-09-08 10:40:39 UTC Build number: none Revision:
e6cf70745ac11fa943e19294d19a2c527a669a53
Groovy:
2.3.6 Ant:
Apache Ant™ version 1.9.3 compiled on December 23 2013 JVM:
1.7.0_55 (Oracle Corporation 24.55-b03) OS:
Windows 7 6.1 x86
build.gradle file:- -------------------------------------------------------------------------------------------------------------------------------------------------------------
import java.text.SimpleDateFormat
apply plugin: ‘java’ apply plugin: ‘maven’ apply plugin: ‘idea’ apply plugin: ‘eclipse’ apply plugin: ‘propdeps’ apply plugin: ‘propdeps-idea’ apply plugin: ‘propdeps-eclipse’ apply plugin: ‘propdeps-maven’
ext.cascadingVersion = ‘2.6.0’ ext.hadoopVersion = ‘2.4.1’ ext.hiveVersion = ‘0.13.1’
apply from: “etc/properties.gradle” apply from: “etc/version.gradle” apply from: “etc/s3Upload.gradle”
def versionProperties = new Properties() file( ‘version.properties’ ).withInputStream { versionProperties.load( it ) }
group = ‘cascading’ version = releaseVersion
ext.timestamp = new SimpleDateFormat( “yyyyMMdd” ).format( new Date() ) ext.buildDate = timestamp
buildscript {
repositories {
mavenCentral()
maven { url ‘http://repo.springsource.org/plugins-release’ }
}
dependencies {
classpath ‘org.springframework.build.gradle:propdeps-plugin:0.0.5’
} }
configurations {
testArtifacts {
extendsFrom testRuntime
} }
repositories {
mavenLocal()
mavenCentral()
maven{ url ‘http://conjars.org/repo/’ }
maven{ url ‘http://www.datanucleus.org/downloads/maven2/’ } }
dependencies {
compile group: ‘cascading’, name: ‘cascading-hadoop2-mr1’, version: cascadingVersion, changing: true
provided (group: ‘org.apache.hive’, name: ‘hive-exec’, version: hiveVersion){
exclude group: ‘com.google.guava’
}
//provided group: ‘com.google.guava’, name: ‘guava’, version: ‘11.0’
runtime group: ‘xerces’, name: ‘xercesImpl’, version: ‘2.9.1’
runtime group: ‘xalan’, name: ‘xalan’, version: ‘2.7.1’
provided group: ‘org.apache.hadoop’, name: ‘hadoop-common’, version: hadoopVersion
provided group: ‘org.apache.hadoop’, name: ‘hadoop-mapreduce-client-core’, version: hadoopVersion
provided group: ‘org.slf4j’, name: ‘slf4j-api’, version: ‘1.6.1’
provided group: ‘org.slf4j’, name: ‘slf4j-log4j12’, version: ‘1.6.1’
provided group: ‘log4j’, name: ‘log4j’, version: ‘1.2.17’
testCompile group: ‘cascading’, name: ‘cascading-hadoop2-mr1’, version: cascadingVersion, changing: true
testCompile group: ‘cascading’, name: ‘cascading-core’, version: cascadingVersion, classifier: ‘tests’, changing: true
testCompile group: ‘cascading’, name: ‘cascading-hadoop2-mr1’, version: cascadingVersion, classifier: ‘tests’, changing: true
testCompile group: ‘cascading’, name: ‘cascading-platform’, version: cascadingVersion, classifier: ‘tests’, changing: true
testCompile group: ‘org.apache.hadoop’, name: ‘hadoop-minicluster’, version: hadoopVersion
testCompile group: ‘junit’, name: ‘junit’, version: ‘4.11’
testCompile group: ‘org.mockito’, name: ‘mockito-all’, version: ‘1.9.5’
}
task sourcesJar( type: Jar, dependsOn: classes ) {
from sourceSets.main.allSource
classifier = ‘sources’ }
task javadocJar( type: Jar, dependsOn: javadoc ) {
classifier = ‘javadoc’
from javadoc.destinationDir }
task testsJar( type: Jar, dependsOn: testClasses ) {
from sourceSets.test.output
classifier = ‘tests’ }
task testSourcesJar( type: Jar, dependsOn: classes ) {
from sourceSets.test.allSource
classifier = ‘test-sources’ }
artifacts {
archives jar
archives sourcesJar
archives javadocJar
archives testsJar
archives testSourcesJar
testArtifacts testsJar
testArtifacts testSourcesJar }
jar {
manifest {
attributes( “Build-Date”: “${timestamp}” )
} }
task createFrameworkProperties( dependsOn: processResources ) << {
file( “${sourceSets.main.output.resourcesDir}/cascading” ).mkdirs()
file( “${sourceSets.main.output.resourcesDir}/cascading/framework.properties”).write(“name=${project.name}:${version}\n” )
}
jar.dependsOn( createFrameworkProperties )
test {
jvmArgs ‘-Xmx756m’
forkEvery = 1
enableAssertions = false
include ‘**/*Test.class’ }
uploadArchives {
repositories.mavenDeployer {
configuration = configurations.archives
repository( url: repoUrl ) {
authentication( userName: repoUserName, password: repoPassword )
}
pom.project {
description ‘Cascading hive is an adapter to run hive queries in Cascading flows’
inceptionYear ‘2014’
url ‘http://cascading.org/’
scm {
url ‘https://github.com/Cascading/cascading-hive.git’
}
licenses {
license {
name ‘The Apache Software License, Version 2.0’
url ‘http://www.apache.org/licenses/LICENSE-2.0.txt’
distribution ‘repo’
}
}
}
} }
idea {
module {
downloadJavadoc = true
downloadSources = true
} }
eclipse {
classpath {
defaultOutputDir = file( ‘build’ )
downloadSources = true
downloadJavadoc = true
} }
ouput of gradle install --stacktrace
------------------------------------------------------------------------------------------------------------------------- FAILURE: Build failed with an exception.
-
Where: Build file ‘C:\Users\608054122\Downloads\cascading hive\cascading-hive-1.0\build .gradle’ line: 77
-
What went wrong: A problem occurred evaluating root project ‘cascading-hive’. > You can’t change configuration ‘provided’ because it is already resolved!
-
Try: Run with --info or --debug option to get more log output.
-
Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating root project
‘cascading-hive’.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR unnerImpl.run(DefaultScriptRunnerFactory.java:54)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl. apply(DefaultScriptPluginFactory.java:190)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc riptProcessor.java:39)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc riptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva luate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L ifecycleProjectEvaluator.java:55)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj ect.java:521)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj ect.java:82)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil dConfigurer.java:31)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default GradleLauncher.java:129)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle Launcher.java:106)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun cher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon troller.run(InProcessBuildActionExecuter.java:80)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.jav a:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:36)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce ssBuildActionExecuter.java:26)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav a:171)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction. execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction. execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti meValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti meValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute( CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute( CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep ortingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep ortingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots trap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j ava:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23) Caused by: org.gradle.api.InvalidUserDataException: You can’t change configurati on ‘provided’ because it is already resolved!
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration .throwExceptionIfNotInUnresolvedState(DefaultConfiguration.java:388)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration .access$400(DefaultConfiguration.java:45)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration $VetoContainerChangeAction.run(DefaultConfiguration.java:488)
at org.gradle.api.internal.DefaultDomainObjectCollection.assertMutable(D efaultDomainObjectCollection.java:258)
at org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDoma inObjectCollection.java:158)
at org.gradle.api.internal.DelegatingDomainObjectSet.add(DelegatingDomai nObjectSet.java:80)
at org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyH andler.doAdd(DefaultDependencyHandler.java:81)
at org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyH andler.methodMissing(DefaultDependencyHandler.java:114)
at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMeth od(BeanDynamicObject.java:225)
at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObj ect.java:129)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(Composite DynamicObject.java:163)
at org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyH andler_Decorated.invokeMethod(Unknown Source)
at build_71e4agvkg9nkvoopt3uu8eilin$_run_closure4.doCall(C:\Users\608054 122\Downloads\cascading hive\cascading-hive-1.0\build.gradle:77)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedActi on.java:59)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:130)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:91)
at org.gradle.api.internal.project.AbstractProject.dependencies(Abstract Project.java:848)
at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMeth od(BeanDynamicObject.java:225)
at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObj ect.java:129)
at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(Composite DynamicObject.java:147)
at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java: 79)
at build_71e4agvkg9nkvoopt3uu8eilin.run(C:\Users\608054122\Downloads\cas cading hive\cascading-hive-1.0\build.gradle:73)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR unnerImpl.run(DefaultScriptRunnerFactory.java:52)
… 31 more
BUILD FAILED
Total time: 19.587 secs
I am using windows 7 Operating system and have git installed and present in classpath.