-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (92 loc) · 2.71 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
// FYI: this is actually gen/templates/libraries/okhttp-gson/build.gradle.mustache
buildscript {
repositories {
mavenCentral()
}
dependencies {
}
}
plugins {
id 'idea'
id 'signing'
id 'java'
id 'maven-publish'
id('io.github.gradle-nexus.publish-plugin') version '1.1.0'
}
group = 'com.mux'
version = '0.17.0'
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDirs = ['src/main/java']
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.named('jar') {
archiveBaseName = 'mux-sdk-java'
}
java {
withSourcesJar()
withJavadocJar()
}
nexusPublishing {
repositories {
sonatype()
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
groupId = 'com.mux'
name = 'mux-sdk-java'
description = 'Mux SDK for Java'
url = 'https://github.com/muxinc/mux-java'
licenses {
license {
name = 'MIT'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'mux-sdk'
name = 'Mux DevEx Team'
}
}
scm {
url = 'https://github.com/muxinc/mux-java'
connection = 'scm:git://github.com/muxinc/mux-java.git'
developerConnection = 'scm:git://github.com/muxinc/mux-java.git'
}
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
task execute(type:JavaExec) {
mainClass = System.getProperty('mainClass')
classpath = sourceSets.main.runtimeClasspath
}
dependencies {
implementation 'io.swagger:swagger-annotations:1.5.24'
implementation "com.google.code.findbugs:jsr305:3.0.2"
implementation 'com.squareup.okhttp3:okhttp:3.14.7'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.7'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'io.gsonfire:gson-fire:1.8.4'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
testImplementation 'com.google.guava:guava:30.1.1-jre'
testImplementation 'junit:junit:4.13.1'
}
javadoc {
options.tags = [ "http.response.details:a:Http Response Details" ]
}