-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (88 loc) · 2.8 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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'jacoco'
id 'org.sonarqube' version '3.3'
id 'com.adarshr.test-logger' version '3.0.0'
}
group 'com.ueby'
version '2.6-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes("Implementation-Title": "UEBY-LOTERIA-CRAWLERS",
"Implementation-Version": archiveVersion)
}
}
repositories {
mavenCentral()
}
dependencies {
// Apache Fluent
implementation group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.+'
// Jackson
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.+'
implementation group: 'com.fasterxml.jackson.module', name: 'jackson-module-parameter-names', version: '2.9.+'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jdk8', version: '2.9.+'
implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.9.+'
implementation group: 'org.jsoup', name: 'jsoup', version: '1.13.+'
// Log4j
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.+'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.+'
// Lombok
compileOnly 'org.projectlombok:lombok:1.18.+'
annotationProcessor 'org.projectlombok:lombok:1.18.+'
testCompileOnly 'org.projectlombok:lombok:1.18.+'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.+'
// JUnit
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.+")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.+")
}
javadoc {
title 'UEBY LOTERIA CRAWLERS API'
options.encoding = "ISO-8859-1"
options.author = true
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/algarves/loteria-crawlers")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(Test) {
description = 'Runs the unit tests.'
group = 'validation'
useJUnitPlatform({
excludeTags 'integrationTest'
})
}
task integrationTest(type: Test) {
description = 'Runs the integration tests.'
group = 'verification'
useJUnitPlatform {
includeTags 'integrationTest'
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
apply from: "$project.rootDir/sonar.gradle"