-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
112 lines (99 loc) · 3.09 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
112
plugins {
id 'org.springframework.boot' version '2.2.6.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'org.sonarqube' version '2.8'
id 'maven-publish'
id 'jacoco'
id 'java'
}
group = 'cloud.klasse'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '14'
publishing {
publications {
bootJava(MavenPublication) {
artifact bootJar
}
}
repositories {
maven {
url = "https://arts.build.ricksha.dev/artifactory/gradle-dev-local"
credentials {
username "${artifactory_user}"
password "${artifactory_password}"
}
}
}
}
repositories {
maven {
url = "https://arts.build.ricksha.dev/artifactory/gradle-dev"
credentials {
username "${artifactory_user}"
password "${artifactory_password}"
}
}
mavenCentral()
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
dependencies {
// implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'io.jsonwebtoken:jjwt-api:0.11.1'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.1'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.1'
implementation 'com.google.zxing:javase:3.4.0'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.projectlombok:lombok'
testCompile "org.mockito:mockito-junit-jupiter:3.1.0"
testImplementation 'org.assertj:assertj-core:3.15.0'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui
compile group: 'org.springdoc', name: 'springdoc-openapi-ui', version: '1.3.4'
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-data-rest
compile group: 'org.springdoc', name: 'springdoc-openapi-data-rest', version: '1.3.4'
}
sonarqube {
properties {
property 'sonar.coverage.jacoco.xmlReportPaths', 'build/reports/jacoco/test/jacocoTestReport.xml'
}
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}
test.finalizedBy jacocoTestReport
test {
useJUnitPlatform()
reports.junitXml.enabled = true
}
task projectName {
doLast {
println project.name
}
}
task projectVersion {
doLast {
println project.version
}
}