-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.gradle
163 lines (146 loc) · 4.09 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
buildscript {
repositories {
jcenter()
mavenCentral()
}
}
plugins {
id "java"
id "maven"
id 'maven-publish'
id "com.jfrog.bintray" version "1.7.3"
id 'pl.allegro.tech.build.axion-release' version '1.8.1'
}
repositories {
mavenCentral()
}
ext.junit4Version = '4.12'
scmVersion {
tag {
prefix = 'spring-social-partner-center'
}
checks {
uncommittedChanges = false
}
nextVersion {
suffix = 'rc'
separator = '-'
}
branchVersionIncrementer = [
'^release/patch/.*': 'incrementPatch',
'^release/minor/.*': 'incrementMinor',
'^release/major/.*': 'incrementMajor'
]
}
group 'io.github.springsocialmicrosoft'
version = scmVersion.version
dependencies {
compile(
[ group: 'org.springframework.social', name: 'spring-social-core', version: "1.1.4.RELEASE" ],
[ group: 'org.springframework.retry', name: 'spring-retry', version: '1.1.2.RELEASE'],
[ group: "com.fasterxml.jackson.core", name: "jackson-databind", version: "2.6.7" ],
[ group: "com.fasterxml.jackson.datatype", name: "jackson-datatype-jsr310",version: "2.6.7" ],
[ group: 'org.slf4j', name: 'slf4j-api', version: "1.7.22"],
[ group: 'com.google.guava', name: 'guava', version: '21.0']
)
compile('org.apache.httpcomponents:httpclient:4.3.3') {
exclude group: 'commons-logging', module: 'commons-logging'
}
compileOnly(
[group: 'org.projectlombok', name: 'lombok', version: '1.16.16']
)
testCompileOnly(
[group: 'org.projectlombok', name: 'lombok', version: '1.16.16']
)
testCompile(
[ group: "junit", name: "junit", version: "${junit4Version}"],
[ group: "com.github.tomakehurst", name: "wiremock", version: "2.4.1"],
[ group: 'org.assertj', name: 'assertj-core', version: '3.6.2'],
[ group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.8'],
[ group: 'org.mockito', name: 'mockito-core', version: '2.7.22'],
[ group: 'commons-io', name: 'commons-io', version: '2.4']
)
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
bintray {
user = "${bintrayUser}"
key = "${bintrayKey}"
publications = ['mavenJava']
pkg {
repo = 'partnercenter'
name = project.name
userOrg = 'springsocialmicrosoft'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/SpringSocialMicrosoft/spring-social-partnercenter.git'
publish = true
version {
name = scmVersion.version
released = new Date()
vcsTag = "${scmVersion.tag.prefix}${scmVersion.tag.versionSeparator}${scmVersion.version}"
publicDownloadNumbers = true
gpg {
sign = true
}
mavenCentralSync {
sync = true
user = "${mavenCentralUser}"
password = "${mavenCentralPassword}"
}
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
version scmVersion.version
groupId group
artifactId 'spring-social-microsoft-partnercenter'
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'spring-social-microsoft-partnercenter'
description 'A provider extension for Spring Social to enable connectivity with Microsoft and an API binding for Microsoft\'s Partner Center API.'
url "https://github.com/SpringSocialMicrosoft/spring-social-partnercenter"
scm {
url "https://github.com/SpringSocialMicrosoft/spring-social-partnercenter.git"
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'psmelser'
name 'Paul Smelser'
email '[email protected]'
}
}
}
}
artifact sourcesJar
artifact javadocJar
from components.java
}
}
repositories{
maven {
url "https://dl.bintray.com/springsocialmicrosoft/spring-social-microsoft/" }
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3'
}
}