-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
111 lines (95 loc) · 3.37 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins {
id 'java'
id 'maven-publish'
id 'idea'
id 'application'
id 'org.springframework.boot' version '3.1.11'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'de.undercouch.download' version '4.1.1'
id 'jacoco'
id 'org.barfuin.gradle.jacocolog' version '1.0.1'
id "com.github.johnrengelman.shadow" version "6.0.0"
}
application {
mainClassName = 'com.target.devicemanager.DeviceMain'
}
group 'com.target'
version '1.0'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:3.1.11"
implementation "org.springframework.boot:spring-boot-starter-actuator:3.1.11"
implementation "org.springframework.boot:spring-boot-starter-validation:3.1.11"
implementation "org.springframework.boot:spring-boot-loader:3.1.11"
implementation "io.micrometer:micrometer-registry-influx:1.9.0"
implementation "org.javapos:javapos-config-loader:2.2.0"
implementation "org.javapos:javapos:1.14.3"
implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0"
implementation "com.fasterxml.jackson.core:jackson-annotations:2.14.0"
implementation "com.fasterxml.jackson.core:jackson-core:2.14.0"
implementation "com.fasterxml.jackson.core:jackson-databind:2.14.0"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.0"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.0"
implementation "com.fasterxml.jackson.module:jackson-module-parameter-names:2.14.0"
implementation "jakarta.servlet:jakarta.servlet-api:6.0.0"
implementation "jakarta.validation:jakarta.validation-api:3.0.2"
implementation "jakarta.annotation:jakarta.annotation-api:2.1.1"
implementation "net.logstash.logback:logstash-logback-encoder:6.4"
implementation "org.yaml:snakeyaml:2.0"
implementation "org.springframework.boot:spring-boot-starter-cache:3.1.11"
implementation "com.github.ben-manes.caffeine:caffeine:2.9.3"
implementation "io.github.classgraph:classgraph:4.8.147"
testImplementation "org.springframework.boot:spring-boot-starter-test:3.1.11"
}
tasks.withType(JavaExec){
systemProperties System.properties
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging {
events "skipped", "failed"
}
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.7"
reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir')
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
build {
dependsOn("copyRuntimeJars")
}
task copyRuntimeJars(type: Copy) {
from configurations.runtimeClasspath
into "$buildDir/libs"
}
ext['log4j2.version'] = '2.17.1'
shadowJar{
archiveClassifier.set("")
}
task generatePom {
doLast {
pom {
project {
licenses {
license {
name 'MIT'
url 'http://www.opensource.org/licenses/mit-license.php'
distribution 'repo'
comments 'All source code is under the MIT license.'
}
}
}
}.writeTo("$buildDir/pom/$archivesBaseName-$version"+".pom")
}
}