-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
93 lines (83 loc) · 2.82 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
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = 1.8
group 'com.worldline.sips'
version '1.4.3'
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set("javadoc")
from javadoc.destinationDir
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'SIPS Payment SDK'
description = 'This library simplifies the use of SIPS 2.0, the Worldline e-payments API'
url = 'https://github.com/worldline/sips-sdk-java/'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
distribution = 'repo'
}
}
developers {
developer {
name = 'Support SIPS Benelux'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/worldline/sips-sdk-java'
connection = 'scm:git:git://github.com/worldline/sips-sdk-java.git'
developerConnection = 'scm:git:ssh://[email protected]:worldline/sips-sdk-java.git'
}
organization {
name = 'Worldline'
url = 'https://worldline.com'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/worldline/sips-sdk-java/issues'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
signing {
sign publishing.publications.maven
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
}