-
Notifications
You must be signed in to change notification settings - Fork 162
/
build.gradle
146 lines (117 loc) · 3.75 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
buildscript {
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'http://repo.spring.io/plugins-release' }
}
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.1.0'
classpath 'io.spring.gradle:spring-release-plugin:0.2.0'
classpath 'org.ow2.asm:asm:5.2'
}
}
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'io.spring.release'
apply plugin: 'nebula.optional-base'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
mavenCentral()
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url 'https://repo.spring.io/libs-snapshot' }
}
ext {
jacksonVersion = findProperty('jacksonVersion') ?: '2.8.6'
springBootVersion = findProperty('springBootVersion') ?: '1.5.3.RELEASE'
springSocialVersion = findProperty('springSocialVersion') ?: '1.1.4.RELEASE'
springVersion = findProperty('springVersion') ?: '4.3.8.RELEASE'
jsonVersion = findProperty('jsonVersion') ?: '20170516'
junitVersion = findProperty('junitVersion') ?: '4.12'
mockitoVersion = findProperty('mockitoVersion') ?: '2.8.9'
}
group = 'com.github.spring-social'
description = 'Google API for Spring Social'
contacts {
moniker 'Michael Laccetti'
github 'mlaccetti'
}
}
license {
includes(["**/*.java", "**/*.properties"])
}
publishing {
publications {
SpringSocialGooglePublication(MavenPublication) {
from components.java
artifact tasks.sourceJar
artifact tasks.javadocJar
pom.withXml {
asNode().with {
appendNode('licenses').with {
appendNode('license').with {
appendNode('name', 'Apache-2.0')
appendNode('url', 'https://opensource.org/licenses/Apache-2.0')
}
}
}
}
}
}
}
bintray {
publications = ['SpringSocialGooglePublication']
pkg {
userOrg = 'spring-social'
labels = ['spring', 'spring-social', 'google']
}
}
[compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all', '-Xlint:-processing', '-Werror']
test.systemProperty('java.awt.headless', 'true')
dependencies {
compile("org.springframework.boot:spring-boot-starter:$springBootVersion", optional)
compile("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion", optional)
compile("org.springframework.social:spring-social-core:$springSocialVersion")
compile("org.springframework.social:spring-social-config:$springSocialVersion")
compile("org.springframework.social:spring-social-security:$springSocialVersion", optional)
compile("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
compile("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
compile("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
testCompile("junit:junit:$junitVersion")
testCompile("org.mockito:mockito-core:$mockitoVersion")
testCompile("org.springframework:spring-test:$springVersion")
testCompile("org.json:json:$jsonVersion")
}
checkstyle {
toolVersion = "7.7"
configFile = file("${rootDir}/gradle/checkstyle.xml")
maxErrors = 0
maxWarnings = 0
showViolations = false
ignoreFailures = false
}
tasks.withType(Checkstyle) {
source = "src/main/java"
reports {
xml.enabled false
html.enabled true
html.stylesheet resources.text.fromFile("${rootDir}/gradle/checkstyle.xsl")
}
}
findbugs {
toolVersion = "3.0.1"
excludeFilter = file("${rootDir}/gradle/findbugs.xml")
ignoreFailures = false
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
html.stylesheet resources.text.fromFile("${rootDir}/gradle/findbugs.xsl")
}
}