-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (74 loc) · 2.01 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
plugins {
id 'groovy'
id 'java'
id 'maven-publish'
id 'checkstyle'
}
group 'br.com.quintoandar'
version '1.6.2'
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
apply from: "${rootProject.rootDir}/config/checkstyle.gradle"
dependencies {
compile('org.springframework.boot:spring-boot-autoconfigure:2.0.4.RELEASE')
compile('org.springframework:spring-context:5.0.8.RELEASE')
compile('org.springframework:spring-beans:5.0.8.RELEASE')
compile('org.codehaus.groovy:groovy-all:2.4.15')
compile('commons-io:commons-io:2.6')
compile('org.bitbucket.b_c:jose4j:0.9.3')
compile('net.bytebuddy:byte-buddy:1.8.22')
compile('com.fasterxml.jackson.core:jackson-databind:2.11.1')
testCompile('junit:junit:4.12')
testCompile('org.spockframework:spock-core:1.1-groovy-2.4')
testCompile('org.slf4j:slf4j-simple:1.7.21')
}
wrapper {
gradleVersion = '4.10.2'
}
test {
afterTest { desc, result ->
println "Test [${desc.name}] was a ${result.resultType}"
}
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html4', true)
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'br.com.quintoandar'
artifactId = 'java-jwt'
version = '1.6.2'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = '5A Java JWT'
description = 'Java JWT parser using QuintoAndar public key or Keycloak Quintoandar'
scm {
connection = 'scm:git:[email protected]:quintoandar/java-jwt.git'
developerConnection = 'scm:git:[email protected]:quintoandar/java-jwt.git'
url = 'https://github.com/quintoandar/java-jwt'
}
}
}
}
repositories {
maven {
url = "$projectDir/mvn-repo"
}
}
}