| |
| apply plugin: 'java' |
| |
| sourceCompatibility = '1.6' |
| targetCompatibility = '1.6' |
| |
| repositories { |
| mavenLocal() |
| mavenCentral() |
| mavenRepo name: 'conjars', url: 'http://conjars.org/repo/' |
| } |
| |
| ext.cascadingVersion = '2.1.0' |
| |
| dependencies { |
| compile( group: 'cascading', name: 'cascading-core', version: cascadingVersion ) |
| compile( group: 'cascading', name: 'cascading-hadoop', version: cascadingVersion ) |
| compile 'commons-cli:commons-cli:1.2' |
| compile( group: 'org.apache.hadoop', name: 'hadoop-core', version: '1.2.1') |
| } |
| |
| jar { |
| description = "Assembles a Hadoop ready jar file" |
| doFirst { |
| into( 'lib' ) { |
| from configurations.compile |
| } |
| } |
| |
| manifest { |
| attributes( "Main-Class": "io/prediction/algorithms/cascading/itemrec/popularrank/PopularRankAlgo" ) |
| } |
| } |