-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
80 lines (63 loc) · 2.4 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
plugins {
id 'java'
id 'checkstyle'
id 'org.springframework.boot' version '2.1.9.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'com.github.kt3k.coveralls' version '2.8.4'
id 'com.softeq.gradle.itest' version '1.0.4'
}
hasProperty('disableIntegrationTests') && (ext.disableJacoco = true)
apply from: 'gradle/plugins/queryDsl.gradle'
apply from: 'gradle/plugins/codeCoverage.gradle'
group = 'com.softeq'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
def swaggerVersion = '2.8.0'
def mapstructVersion = '1.3.1.Final'
def lombokVersion = '1.18.10'
def junitVersion = '5.3.1'
def mockitoVersion = '2.23.0'
def querydslVersion = '4.2.1'
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
integrationTest {
useJUnitPlatform()
}
coveralls {
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}
checkstyle {
toolVersion '8.25'
configFile file('gradle/checkstyle/oracle_checks.xml')
}
dependencies {
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstructVersion"
implementation "org.mapstruct:mapstruct:$mapstructVersion"
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
annotationProcessor(
"com.querydsl:querydsl-apt:$querydslVersion:jpa",
'org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final',
'javax.annotation:javax.annotation-api:1.3.2'
)
implementation "com.querydsl:querydsl-core:$querydslVersion"
implementation "com.querydsl:querydsl-jpa:$querydslVersion"
runtimeOnly 'org.postgresql:postgresql'
implementation 'org.liquibase:liquibase-core'
implementation "io.springfox:springfox-swagger2:$swaggerVersion"
implementation "io.springfox:springfox-swagger-ui:$swaggerVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.mockito:mockito-junit-jupiter:$mockitoVersion"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
itestImplementation 'org.springframework.boot:spring-boot-starter-test'
itestImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
itestRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
itestRuntimeOnly 'com.h2database:h2:1.0.60'
}