-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
81 lines (71 loc) · 2.08 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.7"
}
repositories {
mavenCentral()
jcenter()
}
def VERSION = '1.0.0'
def GROUP_ID = 'org.pixsee.java-fcm'
group GROUP_ID
version VERSION
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
sourceCompatibility = 1.8
dependencies {
compile 'com.squareup.okhttp3:okhttp:3.4.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
// https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-gson
compile group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.1.0'
// https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.4.2'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
publications = ['pixseeMaven']
pkg {
repo = 'Pixsee'
name = GROUP_ID
userOrg = 'tudor'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/PopTudor/Java-fcm'
version {
name = VERSION
desc = 'Gradle Bintray Plugin 1.0 final'
released = new Date()
vcsTag = '1.0'
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
pixseeMaven(MavenPublication) {
from components.java
groupId GROUP_ID
artifactId "java-fcm"
version VERSION
}
}
}