-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
87 lines (77 loc) · 3.44 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
plugins {
id 'java'
id 'jacoco'
id 'org.sonarqube' version '2.7.1'
id 'org.springframework.boot' version '2.1.7.RELEASE'
}
repositories {
mavenLocal()
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
test{
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.4"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
dependencies {
// https://mvnrepository.com/artifact/org.springframework.security/spring-security-test
testCompile group: 'org.springframework.security', name: 'spring-security-test', version: '5.1.6.RELEASE'
compile('javax.xml.bind:jaxb-api:2.3.0')
compile('javax.activation:activation:1.1')
compile('org.glassfish.jaxb:jaxb-runtime:2.3.0')
compile 'io.springfox:springfox-swagger-ui:2.9.2'
compile 'io.springfox:springfox-swagger2:2.9.2'
compile 'org.springframework.boot:spring-boot-starter-web:2.1.8.RELEASE'
compile 'org.springframework.boot:spring-boot-devtools:2.1.8.RELEASE'
compile group: 'com.okta.spring', name: 'okta-spring-boot-starter', version: '1.2.1'
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.17'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.1.8.RELEASE'
compile group: 'com.h2database', name: 'h2', version: '1.4.199'
compile group: 'org.springframework.cloud', name: 'spring-cloud-commons', version: '2.1.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.1.8.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version: '2.1.8.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-rest', version: '2.1.8.RELEASE'
// compile group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: '2.1.8.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-netflix-eureka-client', version: '2.1.2.RELEASE'
compile group: 'org.springframework.cloud', name: 'spring-cloud-dependencies', version: 'Finchley.RELEASE', ext: 'pom'
// compile group: 'org.springframework.security.oauth.boot', name: 'spring-security-oauth2-autoconfigure', version: '2.1.7.RELEASE'
// compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.3.6.RELEASE'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
testCompile 'org.springframework.boot:spring-boot-starter-test:2.1.6.RELEASE'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-junit-jupiter:3.0.0'
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.3.2'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
}
sonarqube {
properties {
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.projectName", "Site Backend"
property "sonar.projectKey", "Ajris_site_backend"
}
}
jar {
manifest {
attributes 'Main-Class': 'com.ajris.site.SiteApplication'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
group = 'com.ajris'
version = '0.0.1-SNAPSHOT'
description = 'Site Backend'
sourceCompatibility = '12'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}