"gradle clean jar" build fail

181 views
Skip to first unread message

salmal...@gmail.com

unread,
Dec 27, 2016, 8:06:47 PM12/27/16
to cascading-user
i am following this tutorials http://docs.cascading.org/tutorials/cascading-mr/

when typing command "
gradle clean jar" it doesnt work but i delete some files (not folder) of gradle from and retype "gradle clean" then build is successfull
but when i type "gradle clean jar" to create a jar it gives me that in screenshot ( pst: i installed hadoop 2.6.0 like in version) and the folder cloned from site is in hadoop folder

this is my build.gradle file :

/*
* Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'provided-base'

ext.cascadingVersion = '3.0.0'
ext.hadoop2Version = '2.6.0'

buildscript {
repositories {
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.2.1'
}
}

dependencies {
compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion )
compile( group: 'cascading', name: 'cascading-local', version: cascadingVersion )
compile( group: 'cascading', name: 'cascading-hadoop2-mr1', version: cascadingVersion )

provided( group: 'org.apache.hadoop', name: 'hadoop-common', version: hadoop2Version )
provided( group: 'org.apache.hadoop', name: 'hadoop-client', version: hadoop2Version )
provided( group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: hadoop2Version )
}

jar {
description = "Assembles a Hadoop ready jar file"
doFirst {
into( 'lib' ) {
from { configurations.compile.minus( [configurations.provided] ) }
}
}

manifest {
attributes( "Main-Class": "mr/WordCount" )
}
}
forum.png
Reply all
Reply to author
Forward
0 new messages