-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (59 loc) · 1.64 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
plugins {
id 'java'
id 'maven-publish'
id 'jacoco'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'commons-io:commons-io:2.7'
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.1'
implementation 'org.hamcrest:java-hamcrest:2.0.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation 'com.github.tomakehurst:wiremock:2.27.2'
}
java.sourceCompatibility = JavaLanguageVersion.of(17)
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.eliflores.tools'
artifactId = 'eliflores-little-tools'
version = "0.0.1-rc-2"
from components.java
pom {
name = 'eliflores-little-tools'
description = 'Little tools in Java that could be useful, from time to time.'
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/eliflores/little-tools-java"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.7"
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}