-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
34 lines (29 loc) · 909 Bytes
/
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
apply plugin: 'groovy'
apply plugin: 'application'
version = '1.0'
mainClassName='Telldus'
repositories {
mavenCentral()
jcenter()
}
compileJava {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.1.9'
compile 'com.amazonaws:aws-lambda-java-core:1.0.0'
compile 'org.scribe:scribe:1.3.7'
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1'
}
task uberjar(type: Jar,dependsOn:[':compileJava',':compileGroovy']) {
from files(sourceSets.main.output)
from configurations.runtime.asFileTree.files.collect { zipTree(it) }
manifest {
attributes 'Main-Class': mainClassName
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}