-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
executable file
·68 lines (51 loc) · 2.15 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
buildscript {
ext.kotlin_version = '1.2.71' // Required for Kotlin integration
ext.spring_boot_version = '2.0.5.RELEASE'
repositories {
mavenCentral()
}
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 "org.springframework.boot:spring-boot-gradle-plugin:$spring_boot_version"
}
}
plugins {
id "io.spring.dependency-management" version "1.0.6.RELEASE"
id 'org.springframework.boot' version '2.0.5.RELEASE'
}
apply plugin: 'war'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'kotlin' // Required for Kotlin integration
apply plugin: "kotlin-spring" // See https://kotlinlang.org/docs/reference/compiler-plugins.html#kotlin-spring-compiler-plugin
apply plugin: 'org.springframework.boot'
jar {
baseName = 'hello'
version = '1.0'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
/* Needed because default kotlin source directory is src/main/java */
main.kotlin.srcDirs += 'src/main/kotlin'
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' } // Package repository for adding Git projects
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" // Required for Kotlin integration
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'javax.servlet:jstl'
compile 'org.webjars:bootstrap:3.3.5'
compile 'org.webjars:jquery:2.1.4'
implementation 'com.github.jkcclemens:khttp:0.1.0' // Http Repository for kotlin from github
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
providedRuntime 'org.apache.tomcat.embed:tomcat-embed-jasper'
testCompile 'org.springframework.boot:spring-boot-starter-test'
// Persistence
compile 'org.springframework.boot:spring-boot-starter-data-redis'
}