https://github.com/kermitt2/grobid
Raw File
Tip revision: ef050f905fd22d3a6f33b88b576d2771d4124e83 authored by Patrice Lopez on 08 August 2017, 13:33:24 UTC
Merge pull request #218 from aoboturov/partial-merge-pr-216
Tip revision: ef050f9
build.gradle
// GENERATED by pom2gradle.xq 
// don't edit this file manually
// author: Vyacheslav Zholudev


apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'


sourceCompatibility = 1.6
targetCompatibility = 1.6


archiveBaseName = 'grobid-core'
version = '0.0.3-SNAPSHOT'


repositories {
  mavenCentral()
  mavenRepo(urls: 'http://download.java.net/maven/2/')
  mavenRepo(urls: 'http://maven.amplafi.com/')
}


dependencies {
   compile files('lib/crfpp.jar')
   compile group: 'junit', name: 'junit', version: '4.8.2'
   compile group: 'log4j', name: 'log4j', version: '1.2.16'
   compile group: 'commons-pool', name: 'commons-pool', version: '1.4'
   compile group: 'commons-io', name: 'commons-io', version: '2.0.1'
   compile group: 'commons-logging', name: 'commons-logging', version: '1.1.1'
   compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0.1'
   compile group: 'org.slf4j', name: 'slf4j-api', version: '1.4.3'
   compile group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.6.1'
}


localLibs = ['crfpp.jar']


task sourceJar(type: Jar) {
   description = 'Builds a source jar artifact suitable for maven deployment.'
   classifier = 'sources'
   from sourceSets.main.java
}

build.dependsOn sourceJar

artifacts {
   archives sourceJar 
}


jar {
   from { configurations.compile.collect { it.isDirectory() ? [] : localLibs.contains(it.getName()) ?  zipTree(it) : []} }
}




test {
   maxHeapSize = '1024m'
}


// idea stuff
ideaProject { 
  javaVersion = '1.6'
}
back to top