forked from Wilmersdorf/ngram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (48 loc) · 1.21 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.0'
id 'maven'
id 'application'
id "org.sonarqube" version "2.2.1"
id "jacoco"
id 'com.github.ben-manes.versions' version '0.13.0'
}
group 'brach.stefan'
version '1.0'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
project.ext {
dropwizardVersion = '1.1.0'
}
dependencies {
compile(
'io.dropwizard:dropwizard-core:' + dropwizardVersion,
'io.dropwizard:dropwizard-testing:' + dropwizardVersion,
'commons-io:commons-io:2.5',
'com.google.inject:guice:4.1.0',
'org.rauschig:jarchivelib:0.7.1',
'com.koloboke:koloboke-api-jdk8:1.0.0',
'com.koloboke:koloboke-impl-jdk8:1.0.0',
)
}
mainClassName = 'brach.stefan.ngram.NgramApplication'
// Configure the shadow jar task
shadowJar {
mergeServiceFiles()
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
archiveName = "ngram.${extension}"
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}