-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (53 loc) · 1.3 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
plugins {
id 'java'
id 'maven-publish'
id 'jacoco'
id 'io.freefair.lombok'
}
group = 'com.labelzoom.api'
version = '1.3.1'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
testImplementation platform('org.junit:junit-bom:5.11.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.reflections:reflections:0.10.2'
testImplementation 'uk.co.jemos.podam:podam:8.0.2.RELEASE'
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'labelzoom-api'
}
}
repositories {
maven {
name = 'GitHubPackages'
url = 'https://maven.pkg.github.com/labelzoom/labelzoom-api'
credentials {
username = System.getenv('GITHUB_ACTOR')
password = System.getenv('GITHUB_TOKEN')
}
}
}
}
// Code coverage
test {
finalizedBy jacocoTestReport // generate the report after tests run
}
jacocoTestReport {
reports {
xml.required = true
html.required = false
}
}