forked from auth0/auth0-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (90 loc) · 2.61 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
106
107
plugins {
id 'java'
id 'jacoco'
id 'com.auth0.gradle.oss-library.java'
}
repositories {
mavenCentral()
}
group = 'com.auth0'
logger.lifecycle("Using version ${version} for ${name} group $group")
def signingKey = findProperty('signingKey')
def signingKeyPwd = findProperty('signingPassword')
oss {
name 'auth0'
repository 'auth0-java'
organization 'auth0'
description 'Java client library for the Auth0 platform.'
baselineCompareVersion '2.0.0'
testInJavaVersions = [8, 11, 17]
skipAssertSigningConfiguration true
developers {
auth0 {
displayName = 'Auth0'
email = '[email protected]'
}
lbalmaceda {
displayName = 'Luciano Balmaceda'
email = '[email protected]'
}
}
}
signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
compileJava {
sourceCompatibility '1.8'
targetCompatibility '1.8'
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked" << "-Werror"
}
compileTestJava {
options.compilerArgs << "-Xlint:deprecation" << "-Werror"
}
test {
testLogging {
events "skipped", "failed"
exceptionFormat "short"
}
useJUnitPlatform()
}
ext {
okhttpVersion = '4.11.0'
hamcrestVersion = '2.2'
jupiterVersion = '5.9.3'
}
dependencies {
// TODO remove direct dependency when OkHttp 4.12.0 is released
implementation ("com.squareup.okhttp3:okhttp:${okhttpVersion}") {
exclude group: 'com.squareup.okhttp3', module: 'okio'
}
implementation "com.squareup.okio:okio:3.5.0"
implementation "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:2.14.2"
implementation "com.auth0:java-jwt:4.4.0"
implementation "net.jodah:failsafe:2.4.4"
testImplementation "org.bouncycastle:bcprov-jdk15on:1.70"
testImplementation "org.mockito:mockito-core:4.8.1"
testImplementation "com.squareup.okhttp3:mockwebserver:${okhttpVersion}"
testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${jupiterVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${jupiterVersion}"
// Override MockWebServer's junit transitive dependency to latest v4
constraints {
testImplementation( group: 'junit', name: 'junit'){
version{
strictly "[4.13.2]"
}
}
}
}