-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
92 lines (74 loc) · 2.19 KB
/
build.gradle
File metadata and controls
92 lines (74 loc) · 2.19 KB
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
buildscript {
ext.kotlin_version = '1.3.72'
ext.spring_boot_version = '2.2.6.RELEASE'
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#spring-support
}
}
version = '1.0.0'
apply plugin: 'org.springframework.boot'
apply plugin: 'kotlin'
apply plugin: 'io.spring.dependency-management'
apply plugin: "kotlin-spring" // https://kotlinlang.org/docs/reference/compiler-plugins.html#spring-support
apply plugin: 'java'
//apply plugin: 'java-library-distribution'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
testCompile "org.springframework.boot:spring-boot-starter-test"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
compile (
implementation('org.springframework.boot:spring-boot-starter-web:2.2.6.RELEASE') {
//exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
},
"com.amazonaws.serverless:aws-serverless-java-container-springboot2:1.5",
'io.symphonia:lambda-logging:1.0.1'
)
testCompile("junit:junit")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
runtime "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin"
}
task buildZip(type: Zip) {
from compileJava
from processResources
into('lib') {
from(configurations.compileClasspath) {
exclude 'tomcat-embed-*'
}
}
into('.') {
from("build/classes/kotlin/main") {
include '**/**'
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
build.finalizedBy(buildZip)
//distributions {
// main {
// distributionBaseName = 'book-service'
// }
//}