This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
131 lines (116 loc) · 3.6 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
plugins {
id 'idea'
id 'eclipse'
id 'java'
id 'maven'
id 'java-library'
id 'maven-publish'
id 'signing'
id 'io.codearte.nexus-staging' version '0.20.0'
id 'de.marcphilipp.nexus-publish' version '0.2.0'
}
group = 'com.criteo'
version = '1.0.29'
repositories {
jcenter()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
pom.artifactId = 'marketing.java-client'
}
}
dependencies {
compile 'io.swagger:swagger-annotations:1.5.22'
compile "com.google.code.findbugs:jsr305:3.0.2"
compile 'com.squareup.okhttp3:okhttp:3.14.2'
compile 'com.squareup.okhttp3:logging-interceptor:3.14.2'
compile 'com.google.code.gson:gson:2.8.5'
compile 'io.gsonfire:gson-fire:1.8.3'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
testCompile 'junit:junit:4.12'
testCompile 'org.mock-server:mockserver-netty:5.5.1'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
javadoc {
options.encoding = 'UTF-8'
options.tags = [ "http.response.details:a:Http Response Details" ]
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'com.criteo'
artifactId 'marketing.java-client'
version '1.0.29'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
packaging = 'jar'
name = 'com.criteo:marketing.java-client'
description = 'Criteo Marketing SDK for Java'
url = 'https://github.com/criteo/criteo-java-marketing-sdk'
licenses {
license {
name = 'Apache License, version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Criteo'
email = 'open-source@criteo.com'
url = 'https://www.criteo.com/'
organization = 'Criteo'
organizationUrl = 'https://www.criteo.com/'
}
}
scm {
connection = 'scm:git:git://github.com/criteo/criteo-java-marketing-sdk.git'
developerConnection = 'scm:git:ssh://github.com:criteo/criteo-java-marketing-sdk.git'
url = 'https://github.com/criteo/criteo-java-marketing-sdk'
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username = "criteo-oss"
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
nexusStaging {
serverUrl = "https://oss.sonatype.org/service/local/"
packageGroup = 'com.criteo'
username = "criteo-oss"
password = System.getenv("SONATYPE_PASSWORD")
numberOfRetries = 50
delayBetweenRetriesInMillis = 3000
}
ext."signing.keyId" = '85532E9E'
ext."signing.secretKeyRingFile" = '.travis/secring.gpg'
ext."signing.password" = System.getenv("SONATYPE_PASSWORD")