-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
73 lines (62 loc) · 1.34 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
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'io.freefair.lombok' version '6.0.0-m2'
}
ext {
gsonVersion = '2.8.7'
guavaVersion = '30.1.1-jre'
jerseyVersion = '2.34'
slf4jVersion = '1.7.31'
junitVersion = '4.13.1'
}
group = 'net.adrianoluis'
version = '1.1.3'
repositories {
mavenCentral()
}
dependencies {
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "com.google.guava:guava:$guavaVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation("org.slf4j:slf4j-log4j12:$slf4jVersion") { transitive = true }
implementation("org.glassfish.jersey.core:jersey-common:$jerseyVersion") { transitive = true }
testImplementation "junit:junit:$junitVersion"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
test {
finalizedBy jacocoTestReport
reports {
html { enabled false }
}
}
jacocoTestReport {
dependsOn test
reports {
xml { enabled true }
html { enabled false }
}
}
publishing {
repositories {
maven {
name = 'GitHubPackages'
url = 'https://maven.pkg.github.com/adrianoluis/rickandmortyapi-java'
credentials {
username = System.getenv('GH_USERNAME')
password = System.getenv('GH_TOKEN')
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}
}