-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
97 lines (78 loc) · 2.12 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
buildscript {
ext.kotlin_version = '1.1.2-2'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id 'java-library'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.7.2'
id 'net.researchgate.release' version '2.4.1'
id 'maven'
}
apply plugin: 'kotlin'
group 'net.dinomite.fcm'
version project.version
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
api "org.apache.httpcomponents:httpclient:4.5.3"
api "com.fasterxml.jackson.core:jackson-databind:2.8.7"
testCompile "junit:junit:4.12"
testCompile "com.github.tomakehurst:wiremock:2.5.1"
testCompile "com.fasterxml.jackson.module:jackson-module-kotlin:2.7.8"
testCompile "org.slf4j:slf4j-simple:1.7.24"
}
task sourceJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
bintray(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
artifact sourceJar {
classifier 'sources'
}
artifact javadocJar {
classifier 'javadoc'
}
}
}
}
release {
tagTemplate = 'v$version'
afterReleaseBuild.dependsOn bintrayUpload
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['bintray']
pkg {
repo = 'maven'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/dinomite/fcm-client'
name = 'net.dinomite.fcm.fcm-client'
version {
name = project.version
released = new Date()
vcsTag = 'v' + project.version
}
}
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}