-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (82 loc) · 2.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
88
89
90
91
92
93
94
95
96
97
plugins {
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "org.sonarqube" version "3.1.1"
id 'jacoco'
id "java"
}
allprojects {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
group = 'com.meli.mutants'
sourceCompatibility = '1.8'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'ch.qos.logback:logback-classic'
implementation 'ch.qos.logback:logback-core'
implementation 'org.slf4j:slf4j-api'
implementation 'org.projectlombok:lombok:1.18.10'
implementation 'org.mapstruct:mapstruct:1.4.2.Final'
implementation 'org.springframework:spring-context'
implementation 'org.springframework:spring-core'
implementation 'org.springframework:spring-context-support'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.10'
testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
}
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:${spring_dependencies_version}")
}
}
sonarqube {
properties {
property "sonar.sources", "src/main/java"
property "sonar.exclusions", "**/*Test*/**"
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("${github_packages_url}/meli-mutants-api")
credentials {
username = System.getenv("GH_PACKAGES_USERNAME")
password = System.getenv("GH_PACKAGES_TOKEN")
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 1.0
}
}
}
}
test {
useJUnitPlatform()
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task version() {
doLast {
println project.version
}
}