-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
133 lines (116 loc) · 3.96 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
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'nexus-workflow'
group = 'com.ionoscloud.objectstoragemanagement'
version = '1.0.0'
buildscript {
repositories {
maven { url "https://repo1.maven.org/maven2" }
jcenter()
}
dependencies {
classpath 'com.adaptc.gradle:nexus-workflow:0.6'
}
}
repositories {
jcenter()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
install {
repositories.mavenInstaller {
pom.artifactId = 'ionos-cloud-sdk-object-storage-management'
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
repositories {
maven {
name = "MavenCentral"
def baseUrl = "https://oss.sonatype.org"
def snapshotsRepoUrl = "$baseUrl/content/repositories/snapshots"
def releasesRepoUrl = "$baseUrl/service/local/staging/deploy/maven2"
url = uri(version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl)
credentials {
username = project.getProperties().get("mvn.credentials.username")
password = project.getProperties().get("mvn.credentials.password")
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = 'ionos-cloud-sdk-object-storage-management'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = "objectstoragemanagement"
description = "The API allows you to perform a variety of management tasks such as provisioning new resources in the ionos cloud."
url = "https://github.com/ionos-cloud/ionos-cloud-sdk-object-storage-management"
licenses {
license {
name = "Unlicense"
url = "http://unlicense.org"
}
}
developers {
developer {
id = "ionoscloud"
name = "Ionos"
email = "sdk@cloud.ionos.com"
}
}
scm {
connection = "scm:git:git@github.com:ionos-cloud/ionos-cloud-sdk-object-storage-management.git"
developerConnection = "scm:git:git@github.com:ionos-cloud/ionos-cloud-sdk-object-storage-management.git"
url = "https://github.com/ionos-cloud"
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
ext {
jackson_databind_nullable_version = "0.2.2"
}
dependencies {
compile 'io.swagger:swagger-annotations:1.5.24'
compile "com.google.code.findbugs:jsr305:3.0.2"
compile 'com.squareup.okhttp3:okhttp:4.9.3'
compile 'com.squareup.okhttp3:logging-interceptor:4.9.3'
compile 'com.google.code.gson:gson:2.9.0'
compile 'io.gsonfire:gson-fire:1.8.5'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'javax.ws.rs:javax.ws.rs-api:2.0'
compile 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.1'
compile 'org.threeten:threetenbp:1.4.3'
compile 'javax.annotation:javax.annotation-api:1.3.2'
compile "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
testCompile 'junit:junit:4.13.1'
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
options.tags = [ "http.response.details:a:Http Response Details" ]
}