-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·52 lines (41 loc) · 893 Bytes
/
Copy pathbuild.gradle
File metadata and controls
executable file
·52 lines (41 loc) · 893 Bytes
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
plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'jacoco'
id 'java-library'
}
group = 'com.github.chistousov.lib'
version = '0.1.0'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
java {
withSourcesJar()
}
bootJar {
enabled = false
}
jar {
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
duplicatesStrategy = 'exclude'
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version,
'Class-Path': '.'
)
}
}