forked from komamitsu/retrofit-converter-msgpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (108 loc) · 3.53 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
apply plugin: 'java'
apply plugin: "findbugs"
apply plugin: 'jacoco'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'org.komamitsu'
archivesBaseName = 'retrofit-converter-msgpack'
version = '1.1.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
task wrapper(type: Wrapper) {
//INFO: Update this value in gradle-wrapper.properties
gradleVersion = '4.3.1'
}
def deployUsername = project.hasProperty('ossrhUsername') ? ossrhUsername : ''
def deployPassword = project.hasProperty('ossrhPassword') ? ossrhPassword : ''
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testImplementation 'junit:junit:4.12'
testImplementation 'ch.qos.logback:logback-classic:1.1.8'
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation 'com.squareup.retrofit2:retrofit:2.4.0'
testImplementation 'com.squareup.okhttp3:mockwebserver:3.10.0'
implementation 'org.slf4j:slf4j-api:1.7.22'
implementation 'org.msgpack:jackson-dataformat-msgpack:0.8.16'
compileOnly 'com.squareup.retrofit2:retrofit:2.4.0'
}
findbugs {
effort = 'max'
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar, shadowJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: deployUsername, password: deployPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: deployUsername, password: deployPassword)
}
pom.project {
name 'retrofit-converter-msgpack'
description "Retrofit Converter for MessagePack"
packaging 'jar'
url 'https://github.com/komamitsu/retrofit-converter-msgpack'
scm {
connection 'scm:git:git://github.com/komamitsu/retrofit-converter-msgpack.git'
developerConnection 'scm:git:git@github.com:komamitsu/retrofit-converter-msgpack.git'
url 'https://github.com/komamitsu/retrofit-converter-msgpack'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'komamitsu'
name 'Mitsunori Komatsu'
email 'komamitsu@gmail.com'
}
}
}
}
}
}
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}