-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
102 lines (92 loc) · 3.36 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
plugins {
id "idea"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "java-library"
id "maven-publish"
id "signing"
}
group = 'com.vertexvis'
version = '0.8.4'
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'api-client-java'
from components.java
pom {
name = 'com.vertexvix:api-client-java'
description = 'The Vertex REST API client for Java.'
url = 'https://github.com/Vertexvis/vertex-api-client-java'
licenses {
license {
name = 'MIT'
url = 'https://github.com/Vertexvis/vertex-api-client-java/blob/main/LICENSE'
}
}
developers {
developer {
email = 'support@vertexvis.com'
name = 'Vertex Developers'
organizationUrl = 'https://developer.vertexvis.com/'
}
}
scm {
connection = 'scm:git:git@github.com:vertexvis/vertex-api-client-java.git'
developerConnection = 'scm:git:git@github.com:vertexvis/vertex-api-client-java.git'
url = 'https://github.com/Vertexvis/vertex-api-client-java'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = project.hasProperty("ossrhUsername") ? project.ossrhUsername : ""
password = project.hasProperty("ossrhPassword") ? project.ossrhPassword : ""
}
}
}
def base64Decode(prop) {
return new String(Base64.getDecoder().decode(project.findProperty(prop).toString())).trim()
}
signing {
useInMemoryPgpKeys(base64Decode("signingKey"), base64Decode("signingPassword"))
sign publishing.publications.mavenJava
}
javadoc {
options.tags = ["http.response.details:a:Http Response Details"]
if(JavaVersion.current().isJava8Compatible()) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
dependencies {
implementation 'io.swagger:swagger-annotations:1.6.14'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation 'com.google.code.gson:gson:2.10'
implementation 'io.gsonfire:gson-fire:1.9.0'
implementation 'org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.1' // 1.0.2 doesn't work with okkhttp3
implementation 'org.apache.commons:commons-lang3:3.15.0'
implementation 'javax.annotation:javax.annotation-api:1.3'
implementation 'org.openapitools:jackson-databind-nullable:0.2.6'
implementation 'info.picocli:picocli:4.7.6'
testImplementation(platform('org.junit:junit-bom:5.10.3'))
testImplementation('org.junit.jupiter:junit-jupiter:5.10.3')
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}