forked from auth0/auth0-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (77 loc) · 2.1 KB
/
build.gradle
File metadata and controls
93 lines (77 loc) · 2.1 KB
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
buildscript {
version = "1.42.0"
}
plugins {
id 'java'
id 'jacoco'
id 'com.auth0.gradle.oss-library.java'
}
repositories {
mavenCentral()
}
def signingKey = findProperty('SIGNING_KEY')
def signingKeyPwd = findProperty('SIGNING_PASSWORD')
signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}
group = 'com.auth0'
logger.lifecycle("Using version ${version} for ${name} group $group")
oss {
name 'auth0'
repository 'auth0-java'
organization 'auth0'
description 'Java client library for the Auth0 platform.'
baselineCompareVersion '1.27.0'
developers {
auth0 {
displayName = 'Auth0'
email = 'oss@auth0.com'
}
lbalmaceda {
displayName = 'Luciano Balmaceda'
email = 'luciano.balmaceda@auth0.com'
}
}
}
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"
}
}
ext {
okhttpVersion = '4.10.0'
hamcrestVersion = '2.2'
}
dependencies {
implementation "com.squareup.okhttp3:okhttp:${okhttpVersion}"
implementation "com.squareup.okhttp3:logging-interceptor:${okhttpVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:2.13.2.2"
implementation "com.auth0:java-jwt:3.19.1"
implementation "net.jodah:failsafe:2.4.1"
testImplementation "org.bouncycastle:bcprov-jdk15on:1.68"
testImplementation "org.mockito:mockito-core:3.7.7"
testImplementation "com.squareup.okhttp3:mockwebserver:${okhttpVersion}"
testImplementation "org.hamcrest:hamcrest-core:${hamcrestVersion}"
testImplementation "org.hamcrest:hamcrest-library:${hamcrestVersion}"
testImplementation "junit:junit:4.13.1"
}