-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
119 lines (100 loc) · 3.31 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
buildscript {
repositories {
mavenCentral()
}
}
allprojects {
apply plugin: 'java'
group 'com.paypal.sdk'
version '1.1.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
test {
useTestNG {
testLogging.showStandardStreams = true
outputs.upToDateWhen { false }
}
}
}
project(':payouts-sdk') {
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile("com.paypal:paypalhttp:1.0.3")
testCompile group: 'org.testng', name: 'testng', version: '6.9.13.6'
testCompile "com.github.tomakehurst:wiremock:2.4.1"
}
apply plugin: 'maven'
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
}
apply plugin: 'signing'
if (project.hasProperty('release')) {
signing {
sign configurations.archives
}
uploadArchives {
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'payouts-sdk'
groupId 'com.paypal.sdk'
artifactId 'payouts-sdk'
version '1.1.1'
packaging 'jar'
description 'PayPal SDK for integrating with the Payouts REST APIs'
url 'https://github.com/paypal/Payouts-Java-SDK.git'
scm {
url 'https://github.com/paypal/Payouts-Java-SDK.git'
connection 'scm:git:git://github.com/paypal/Payouts-Java-SDK.git'
}
licenses {
license {
name 'PayPal SDK License'
url 'https://github.com/paypal/Payouts-Java-SDK/blob/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'DL-PP-JAVA-SDK'
name 'DL-PP-JAVA-SDK'
email '[email protected]'
}
}
}
}
}
}
}
project("payouts-sdk-sample") {
apply plugin: 'java'
dependencies {
compile "org.apache.commons:commons-text:1.9"
compile group: 'org.json', name: 'json', version: '20180813'
compile project(':payouts-sdk')
}
}