-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathbuild.gradle
94 lines (80 loc) · 1.94 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
plugins {
id 'java'
id 'checkstyle'
id 'findbugs'
id 'pmd'
id 'jacoco'
id 'net.researchgate.release' version '2.4.0'
id "com.jfrog.bintray" version '1.7'
id 'maven'
id 'maven-publish'
}
group 'com.evokly'
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.evokly'
artifactId 'kafka-connect-mqtt'
version '1.0'
}
}
}
ext {
kafkaVersion = '0.10.0.0'
}
processResources {
expand project.properties
}
repositories {
mavenCentral()
maven { url "https://repo.eclipse.org/content/repositories/paho-releases/" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.apache.kafka:connect-api:$kafkaVersion"
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compile 'org.bouncycastle:bcpkix-jdk15on:1.54'
compile 'org.bouncycastle:bcpg-jdk15on:1.54'
compile 'commons-io:commons-io:2.4'
compile 'org.slf4j:slf4j-api:1.7.14'
testCompile 'org.slf4j:slf4j-simple:1.7.14'
}
checkstyle {
repositories {
mavenCentral()
}
configurations {
checkstyle
}
dependencies {
checkstyle 'com.puppycrawl.tools:checkstyle:6.12.1'
}
}
tasks.withType(FindBugs) {
reports {
xml.enabled = true
html.enabled = false
}
}
task copyRuntimeLibs(type: Copy) {
into "$buildDir/output/lib"
from configurations.runtime
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'maven'
name = 'kafka-connect-mqtt'
userOrg = 'evokly'
licenses = ['MIT']
vcsUrl = 'https://github.com/evokly/kafka-connect-mqtt.git'
version {
name = '1.0'
vcsTag = '1.0'
}
publications = ['MyPublication']
}
}