-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.42 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.5"
}
group 'io.ankburov'
version '1.0.1'
sourceCompatibility = 1.11
targetCompatibility = 1.11
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.jetbrains:annotations:19.0.0'
compile 'com.squareup.okhttp3:okhttp:4.8.0'
testCompile 'junit:junit:4.12',
'com.github.tomakehurst:wiremock-jre8:2.26.3',
'com.squareup.retrofit2:retrofit:2.9.0',
'org.slf4j:slf4j-simple:1.7.30',
'com.jakewharton.retrofit:retrofit2-reactor-adapter:2.1.0'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
}
jar.dependsOn(sourcesJar)
publishing {
publications {
toMaven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
artifact sourcesJar {
classifier "sources"
}
}
}
}
bintray {
user = project.hasProperty("user") ? project.property("user") : "fake"
key = project.hasProperty("key") ? project.property("key") : "fake"
publications = ['toMaven']
publish = true
pkg {
repo = 'maven'
name = rootProject.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/AnkBurov/retrofit-http-client-adapter.git'
}
}
wrapper {
gradleVersion = '5.6'
}