-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
60 lines (45 loc) · 1.49 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
sourceCompatibility = 1.8
version = '1.0'
mainClassName = 'de.openhabskill.EchoOpenhabSkillApplication'
repositories {
mavenCentral()
}
dependencies {
compile 'io.dropwizard:dropwizard-core:0.8.2'
compile 'io.dropwizard:dropwizard-assets:0.8.2'
compile 'io.dropwizard:dropwizard-client:0.8.2'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'commons-codec:commons-codec:1.10'
compile 'org.mongodb.morphia:morphia:0.111'
compile 'com.github.rholder:snowball-stemmer:1.3.0.581.1'
compile files('../AlexaSkillsKit/lib/alexa-skills-kit-1.1.jar')
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'org.codehaus.groovy:groovy-all:2.4.3'
}
// Create the executable jar and exclude some certificates
jar {
manifest {
attributes "Implementation-Title": "Echo Openhab Skill"
attributes "Implementation-Version": version
attributes "Main-Class" : mainClassName
}
// remove the security files (from mail.jar / activation.jar) so that the jar will be executable.
doFirst {
from (configurations.runtime.resolve().collect { it.isDirectory() ? it : zipTree(it) }) {
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/*.SF'
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
}
}
distributions {
main {
contents {
from { ['src/main/resources']}
}
}
}