-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
64 lines (53 loc) · 1.66 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
buildscript {
ext {
springBootVersion = '2.1.0.RELEASE'
}
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 11
targetCompatibility = 11
idea {
module {
downloadSources = true
}
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
compile "org.springframework.boot:spring-boot-starter-thymeleaf:${springBootVersion}"
compile "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
compile "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
compile "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
developmentOnly "org.springframework.boot:spring-boot-devtools"
compile "org.flywaydb:flyway-core"
compile "org.postgresql:postgresql:42.2.5"
compile "org.thymeleaf.extras:thymeleaf-extras-springsecurity5:3.0.4.RELEASE"
compile "org.springframework.boot:spring-boot-starter-mail"
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:2.21.0"
}
repositories {
mavenCentral()
}
bootRun {
def activeProfiles = 'dev'
classpath = sourceSets.main.runtimeClasspath + configurations.developmentOnly
jvmArgs = [
"-Dspring.profiles.active=$activeProfiles"
]
}