-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
89 lines (77 loc) · 2.34 KB
/
build.gradle
File metadata and controls
89 lines (77 loc) · 2.34 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
apply plugin: 'idea'
buildscript {
ext {
springBootVersion = Versions.spring_boot
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/libs-snapshot' }
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:${Versions.spring_dependency_management_plugin}"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "org.jetbrains.kotlin:kotlin-allopen:${Versions.kotlin}"
}
}
allprojects {
wrapper {
gradleVersion = "4.9"
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply plugin: "org.springframework.boot"
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.concrete.spring'
version = '1.0.0'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/libs-snapshot' }
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${Versions.spring_cloud}"
}
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:${Versions.junit}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${Versions.junit}"
testImplementation("org.springframework.boot:spring-boot-starter-test") { exclude module: 'junit' }
testImplementation "org.mockito:mockito-core:${Versions.mockito}"
testImplementation "org.mockito:mockito-junit-jupiter:${Versions.mockito}"
}
test {
useJUnitPlatform()
testLogging {
events 'skipped', 'failed'
showStackTraces true
showStandardStreams = true
exceptionFormat 'full'
}
reports {
html.enabled = true
}
}
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
sourceSets {
test.java.srcDirs += 'src/integrationTest/java'
test.kotlin.srcDirs += 'src/integrationTest/kotlin'
test.resources.srcDirs += 'src/integrationTest/resources'
}
}