-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
124 lines (103 loc) · 3.58 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
113
114
115
116
117
118
119
120
121
122
123
124
plugins {
id 'java'
id 'idea'
id 'org.springframework.boot' version '2.6.8'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'org.sonarqube' version '2.8'
id 'jacoco'
}
group = 'dev.iakunin'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
dataDog
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:2021.0.3'
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
implementation 'org.postgresql:postgresql'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.liquibase:liquibase-core:4.11.0'
implementation 'com.vladmihalcea:hibernate-types-52:2.16.2'
implementation 'com.fasterxml.jackson.module:jackson-modules-java8:2.13.3'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.3'
implementation 'de.siegmar:logback-gelf:4.0.2'
implementation 'org.cactoos:cactoos:0.50'
implementation 'io.vavr:vavr:0.10.4'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
implementation 'io.github.openfeign:feign-jackson:11.8'
implementation 'org.kohsuke:github-api:1.306'
implementation 'net.dean.jraw:JRAW:1.1.0'
implementation 'io.sentry:sentry-logback:5.7.4'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation group: 'com.github.database-rider', name: 'rider-spring', version: '1.32.3', {
exclude group: 'org.slf4j'
}
testImplementation 'org.testcontainers:postgresql:1.17.2'
testImplementation 'com.github.javafaker:javafaker:1.0.2'
testImplementation 'com.github.tomakehurst:wiremock:2.27.2'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.10'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
dataDog 'com.datadoghq:dd-java-agent:0.102.0'
}
springBoot {
buildInfo {
properties {
version = version
}
}
}
test {
useJUnitPlatform()
failFast = true
maxParallelForks = 2
}
sonarqube {
properties {
property 'sonar.projectKey', 'iakunin_codexia-bot'
property 'sonar.organization', 'iakunin'
property 'sonar.host.url', 'https://sonarcloud.io'
if (project.hasProperty('pullRequestKey') && project.property('pullRequestKey')) {
property 'sonar.pullrequest.key', project.property('pullRequestKey')
}
if (!System.getenv('SONAR_TOKEN')) {
sonarqube.skipProject = true
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
test.finalizedBy jacocoTestReport
task copyDataDog(type: Copy) {
from configurations.dataDog
into "${project.buildDir}/libs"
}
assemble.dependsOn copyDataDog