-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.62 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
plugins {
id "java"
id "idea"
id "org.springframework.boot" version "${springBootVersion}"
id "org.unbroken-dome.test-sets" version "3.0.1"
}
group = "io.github.azagniotov"
version = "1.0.0-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenLocal()
maven { url "https://repo.maven.apache.org/maven2" }
jcenter { url "https://jcenter.bintray.com" }
}
testSets {
componentTest {
dirName = 'component-test'
}
}
dependencies {
// https://stackoverflow.com/questions/57717042/do-we-need-io-spring-dependency-management-gradle-plugin-when-already-using-id
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-jersey"
testImplementation "junit:junit:4.13.1"
testImplementation "org.mockito:mockito-core:3.3.3"
componentTestImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "org.junit.vintage", module: "junit-vintage-engine"
}
}
idea {
project {
jdkName = "1.8"
languageLevel = "1.8"
vcs = "Git"
}
}
springBoot {
mainClassName = "io.github.azagniotov.example.Main"
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
test.outputs.upToDateWhen {false}
componentTest.outputs.upToDateWhen {false}