-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (62 loc) · 2.14 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
buildscript {
ext.kotlin_version = '1.1.2'
ext.amazonaws_sdk_version = '1.11.133'
ext.spring_boot_version = '1.4.2.RELEASE'
ext['jetty.version'] = '9.2.17.v20160517'
repositories {
mavenCentral()
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
classpath 'io.spring.gradle:propdeps-plugin:0.0.9.RELEASE'
}
}
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'
configure(allprojects) {
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/myJava'
main.java.srcDirs += 'src/main/kotlin'
}
//mainClassName = 'sample.MyApp'
//defaultTasks 'run'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" // Required for Kotlin integration
compile ('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
compile "org.springframework.boot:spring-boot-starter-jetty"
compile "com.amazonaws:aws-java-sdk-dynamodb:$amazonaws_sdk_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
compile "com.typesafe:config:1.3.1"
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.8.2'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.8.2'
optional "org.springframework.boot:spring-boot-configuration-processor"
testCompile 'junit:junit'
testCompile 'org.springframework:spring-test'
testCompile "org.mockito:mockito-core:1.+"
}
compileJava.dependsOn(processResources)
task wrapper(type: Wrapper) {
gradleVersion = '3.5.0'
}
jar {
baseName = 'dynamic-keystore-lib'
version = '0.1.0'
}
springBoot {
mainClass = 'sample.MyApp'
}