-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (44 loc) · 1.25 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apply plugin: 'java'
apply plugin: 'com.dictanova.jcasgen'
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.com.dictanova.jcasgen.gradle:gradle-jcasgen-plugin:0.4'
}
}
allprojects {
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
}
generateTypeSystem.destinationDir = project.file("src/main/java")
clean.doLast {
project.delete(fileTree(dir: 'src/main/java/dictanova'))
println 'Cleaning typesystem generated sources.'
}
generateTypeSystem.doLast {
project.delete(fileTree(dir: 'src/main/java/org/apache/uima/examples'))
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileJava {
dependsOn generateTypeSystem
}
dependencies {
compile 'org.yaml:snakeyaml:1.15'
compile 'org.apache.uima:uimaj-core:2.7.0'
compile 'org.apache.uima:uimaj-cpe:2.7.0'
compile 'org.apache.uima:uimaj-document-annotation:2.7.0'
compile('org.apache.uima:uimafit-core:2.1.0') { exclude group: 'org.apache.uima' }
compile('org.apache.uima:uimafit-cpe:2.1.0') { exclude group: 'org.apache.uima' }
compile 'com.google.guava:guava:18.0'
}