-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (92 loc) · 2.98 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
plugins {
id 'pl.allegro.tech.build.axion-release' version '1.10.1'
id 'application'
id 'java'
id 'java-library'
id 'maven-publish'
id 'groovy'
id 'antlr'
id 'ca.coglinc.javacc' version '2.4.0'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'idea'
}
repositories {
mavenCentral()
maven {url 'http://akci.coli.uni-saarland.de/artifactory/external'}
maven {url 'https://jitpack.io'}
}
dependencies {
antlr 'org.antlr:antlr4:4.7.2'
api 'com.github.coli-saar:basics:2909d4b20d9a9cb47ef'
api 'it.unimi.dsi:fastutil:8.2.2'
implementation 'org.springframework:spring-jdbc:4.2.2.RELEASE'
implementation 'mysql:mysql-connector-java:5.1.37'
implementation 'edu.stanford.nlp:stanford-corenlp:3.8.0'
implementation 'edu.mit:jwi:2.2.3'
implementation 'com.google.guava:guava:27.0.1-jre'
implementation 'com.google.code.findbugs:jsr305:3.0.0'
implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'cc.mallet:mallet:2.0.7'
implementation 'com.bric.window:windowmenu:1.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.9.8'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
implementation 'net.sf.jgrapht:jgrapht:0.8.3'
implementation 'jgraph:jgraph:5.13.0.0'
implementation 'com.ezware.oxbow:task-dialog:1.3.5'
implementation 'com.miglayout:miglayout:3.7.4'
implementation 'org.swinglabs:swing-layout:1.0.3'
implementation 'com.beust:jcommander:1.69'
implementation 'com.diffplug.durian:durian:3.1.1'
implementation 'org.apache.httpcomponents:httpclient:4.5.2'
implementation 'jline:jline:2.14.3'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.codehaus.groovy:groovy-all:2.4.13'
}
// we use raw versions, e.g. 2.3.0
scmVersion {
tag {
prefix = ''
}
}
group = 'com.github.coli-saar'
version = scmVersion.version
description = 'alto'
sourceCompatibility = '1.8'
mainClassName = 'de.up.ling.irtg.main.Alto'
// files generated by javacc are for some reason not added to
// the generatedSourceDirs. Do it manually so intellij and
// others find those files.
sourceSets.main.java.srcDir new File(buildDir, 'generated/javacc')
idea {
module {
// Marks the already(!) added srcDir as "generated"
generatedSourceDirs += file('build/generated/javacc')
}
}
// travisCI currently reports lots of errors in the javadoc.
// until those are fixed, we need to ignore them.
javadoc {
failOnError = false
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}