forked from NovatecConsulting/serverless-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (48 loc) · 1.56 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
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
maven {
url "https://dl.bintray.com/jkcclemens/maven"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // Required for Kotlin integration
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.2" //Gradle plugin to create fat/uber JARs, apply file transforms, and relocate packages for applications and libraries
}
}
group 'de.novatec.aws.sample'
version '1.0-SNAPSHOT'
apply plugin: 'kotlin'
apply plugin: "com.github.johnrengelman.shadow"
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.8.2"
compile 'khttp:khttp:0.1.0'
compile group: 'com.google.gdata', name: 'core', version: '1.47.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task buildZip(type: Zip) {
from compileKotlin
from processResources
into('lib') {
from configurations.runtime
}
}
build.dependsOn buildZip